using System.Collections.Generic; using Microsoft.Data.Entity.Relational.Migrations; using Microsoft.Data.Entity.Relational.Migrations.Builders; using Microsoft.Data.Entity.Relational.Migrations.Operations; namespace <%= appName %>.Migrations { public partial class Initial : Migration { public override void Up(MigrationBuilder migration) { migration.CreateTable( name: "User", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:ValueGeneration", "Identity"), Name = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_User", x => x.Id); }); } public override void Down(MigrationBuilder migration) { migration.DropTable("User"); } } }