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.

20180821021736_init.cs 984 B

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