File tree Expand file tree Collapse file tree
src/PhenX.EntityFrameworkCore.BulkInsert/Graph Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ public async Task<GraphInsertResult<T>> InsertGraph<T>(
5353 var totalInserted = 0 ;
5454 var graphMetadata = new GraphMetadata ( _context , options ) ;
5555
56- // Check if any entity types have generated keys - if so, provider must support returning IDs
57- var hasAnyGeneratedKeys = collectionResult . InsertionOrder . Any ( entityType =>
56+ // Check if any entity types have database- generated keys - if so, provider must support returning IDs
57+ var hasAnyDatabaseGeneratedKeys = collectionResult . InsertionOrder . Any ( entityType =>
5858 {
5959 var efEntityType = graphMetadata . GetEntityType ( entityType ) ;
6060 return efEntityType ? . FindPrimaryKey ( ) ? . Properties . Any ( p => p . ValueGenerated != Microsoft . EntityFrameworkCore . Metadata . ValueGenerated . Never ) == true ;
6161 } ) ;
6262
63- if ( hasAnyGeneratedKeys && ! provider . SupportsOutputInsertedIds )
63+ if ( hasAnyDatabaseGeneratedKeys && ! provider . SupportsOutputInsertedIds )
6464 {
6565 throw new NotSupportedException (
6666 $ "The bulk insert provider '{ provider . GetType ( ) . Name } ' does not support returning generated IDs, " +
You can’t perform that action at this time.
0 commit comments