You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With straight EF Core, calling MyDbContext.MyEntities.AddRange(someEntities) followed by MyDbContext.SaveChanges() results in someEntities having their Id column being populated with those generated by Sql Server; is there any way to accomplish the same with MyDbContext.BulkInsertAsync<MyEntity>()? Note that I am using version 2.0 of your library.
On an unrelated note, any plans to add Upsert functionality to 2.0, or is that only supported with EF 5.0?
The text was updated successfully, but these errors were encountered:
At the moment, BulkInsertAsync doesn't populate columns generated by the database. I may add support for that in the future, but not any time soon because my customers are generating Guids in .NET, so there is no real demand for this feature.
As for bulk-upsert, it is implemented in v3 already: documentation
With straight EF Core, calling
MyDbContext.MyEntities.AddRange(someEntities)
followed byMyDbContext.SaveChanges()
results insomeEntities
having theirId
column being populated with those generated by Sql Server; is there any way to accomplish the same withMyDbContext.BulkInsertAsync<MyEntity>()
? Note that I am using version 2.0 of your library.On an unrelated note, any plans to add Upsert functionality to 2.0, or is that only supported with EF 5.0?
The text was updated successfully, but these errors were encountered: