Entity Framework autoincrement key
- by Tommy Ong
I'm facing an issue of duplicated incremental field on a concurrency scenario.
I'm using EF as the ORM tool, attempting to insert an entity with a field that acts as a incremental INT field. Basically this field is called "SequenceNumber", where each new record before insert, will read the database using MAX to get the last SequenceNumber, append…