using Microsoft.EntityFrameworkCore.Migrations; namespace CC.Yi.API.Migrations { public partial class yi1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "student", columns: table => new { id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), name = table.Column(type: "int", nullable: false) }, constraints: table => { table.PrimaryKey("PK_student", x => x.id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "student"); } } }