I have the following model:
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[Key]
public string Id { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int OrderNumber { get; set; }
I would like OrderNumber
to increment by 1 every time. However for some strange reason I get the following sequences:
1,2,3,4,..., 75, 1075, 1076, 1077, 1078,..., 1086, 2086, 2087, 2088,...
For some strange reason they go in a sequence incrementing by one but every now and then it jumps with 1000.
I would appreciate if anyone can point me in the right direction for debugging.