I’m writing a module for Orchard CMS, and I need to set start value of Id as 15.
How can I do it via code?
In Migrations.cs:
SchemaBuilder.CreateTable("NewRecord", table => table
.ContentPartRecord()
.Column<int>("Id", c => c.PrimaryKey().Identity())
and it creates column Id with primary key. What should I add to set the start value? thank you!
Thanks to all! The way to solve this problem – drop the primary key in table and alter column id? which was created automatically. I did it with SchemaBuilder.ExecuteSQL(string) method.