|
1234567891011121314151617181920212223242526272829 |
- 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<int>(nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- Name = table.Column<string>(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Persons", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Persons");
- }
- }
- }
|