using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace WebDoorCreator.Data.Migrations.WDCData { public partial class AddIdTestTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TestTable", columns: table => new { IdUni = table.Column(type: "nvarchar(450)", nullable: false), Campo1 = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: false), Campo2 = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: false) }, constraints: table => { table.PrimaryKey("PK_TestTable", x => x.IdUni); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TestTable"); } } }