We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db7a21 commit c38316eCopy full SHA for c38316e
1 file changed
src/PhenX.EntityFrameworkCore.BulkInsert/Metadata/MetadataProvider.cs
@@ -34,11 +34,11 @@ public TableMetadata GetTableInfo<T>(DbContext context)
34
throw new InvalidOperationException($"The type '{modelType.FullName}' is not part of the model for the current context.");
35
}
36
37
-
38
// Filter out entities without an associated table
39
// See also https://learn.microsoft.com/en-us/ef/core/modeling/keyless-entity-types
40
if (entityType.GetTableName() is null)
41
{
+ throw new InvalidOperationException($"The type '{modelType.FullName}' is not mapped to a table in the database or is keyless.");
42
43
44
var provider = context.GetService<IBulkInsertProvider>();
0 commit comments