In my application (database-first) the primary keys are always created by client, not by the underlying database.
In Entity Framework v4 each Entity
had it's EntityKey
property that could be set manually.
However, I can't find it anymore in EF6?
Is there any specific reason why?
I don't want to call ctx.SaveChanges()
only to have an Entity's
key set as this means a call to the database.
I'm also wondering why ObjectContext.CreateEntityKey
is gone?!