Autonumber with Entity Framework

Set the StoreGeneratedPattern attribute to “Identity” in your SSDL for the autoincrement field. It should help.

Leave a Comment