I have been searching around for a way to set the start seed value on an identity property in my table. If I insert something in the table with the property configured like it is below the id column will start with the value 1. However I would like it to start with the value 1000 or perhaps 10000. Is this possible with a code first approach? Can this be set with DataAnnotations or in an EntityTypeConfiguration class?
My identity property looks like this:
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public virtual int OrderNumber { get; set; }
Is this is only possible in the table designer, column properties in Visual Studio when the table is already created?
Any help would be much appreciated.