Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

20230722123752_Customers.cs 1.3KB

123456789101112131415161718192021222324252627282930313233
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. namespace Karsha_Site.Persistance.Migrations
  3. {
  4. public partial class Customers : Migration
  5. {
  6. protected override void Up(MigrationBuilder migrationBuilder)
  7. {
  8. migrationBuilder.CreateTable(
  9. name: "Customers",
  10. columns: table => new
  11. {
  12. ID = table.Column<int>(type: "int", nullable: false)
  13. .Annotation("SqlServer:Identity", "1, 1"),
  14. Code = table.Column<int>(type: "int", nullable: false),
  15. FullName = table.Column<string>(type: "nvarchar(max)", nullable: true),
  16. Address = table.Column<string>(type: "nvarchar(max)", nullable: true),
  17. Link = table.Column<string>(type: "nvarchar(max)", nullable: true),
  18. Image = table.Column<string>(type: "nvarchar(max)", nullable: true)
  19. },
  20. constraints: table =>
  21. {
  22. table.PrimaryKey("PK_Customers", x => x.ID);
  23. });
  24. }
  25. protected override void Down(MigrationBuilder migrationBuilder)
  26. {
  27. migrationBuilder.DropTable(
  28. name: "Customers");
  29. }
  30. }
  31. }