You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
904 B

  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace Sample.RabbitMQ.SqlServer.Migrations
  3. {
  4. public partial class FirstMigration : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.CreateTable(
  9. name: "Persons",
  10. columns: table => new
  11. {
  12. Id = table.Column<int>(nullable: false)
  13. .Annotation("SqlServer:Identity", "1, 1"),
  14. Name = table.Column<string>(nullable: true)
  15. },
  16. constraints: table =>
  17. {
  18. table.PrimaryKey("PK_Persons", x => x.Id);
  19. });
  20. }
  21. protected override void Down(MigrationBuilder migrationBuilder)
  22. {
  23. migrationBuilder.DropTable(
  24. name: "Persons");
  25. }
  26. }
  27. }