In working with Entity Framework Database First
,
why is it that issuing the Create method in any of my DbContext
Sets
creates an instance of the set's entity without incrementing its Identity columns ?
Considering I build all entities I want to add to a given set first, and only once, at the end, I add them all via DbContext.SaveChanges()
- what's really the use of DbSet.Create()
if not to property initialize the identity columns ? I could simply manually instantiate my DbSet
as var newEntity = new MyClass();