ProjectGrid/Migrations/20210605214637_ProjectGrid.cs

32 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace ProjectGrid.Migrations
{
public partial class ProjectGrid : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "USER",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
Name1 = table.Column<string>(type: "nvarchar(max)", nullable: true),
Name2 = table.Column<string>(type: "nvarchar(max)", nullable: true),
Email = table.Column<string>(type: "nvarchar(max)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_USER", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "USER");
}
}
}