using Microsoft.EntityFrameworkCore.Migrations; namespace Sample.RabbitMQ.SqlServer.Migrations { public partial class FirstMigration : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Persons", columns: table => new { Id = table.Column(nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Name = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Persons", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Persons"); } } }