Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

30 rindas
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. }