I have simple entity:
public class Hall { [Key] public int Id {get; set;} public string Name [get; set;} }
Then in the S
S
I found out that for this to work, the identity position should be 0 when the seed first run. You can reset it using:
DBCC CHECKIDENT (tableName, RESEED, 0)