Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

20221101095111_AddedTechnology.cs 1007B

12345678910111213141516171819202122232425262728293031
  1. using Microsoft.EntityFrameworkCore.Migrations;
  2. #nullable disable
  3. namespace Diligent.WebAPI.Data.Migrations
  4. {
  5. public partial class AddedTechnology : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "Technologies",
  11. columns: table => new
  12. {
  13. TechnologyId = table.Column<int>(type: "int", nullable: false)
  14. .Annotation("SqlServer:Identity", "1, 1"),
  15. Name = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false)
  16. },
  17. constraints: table =>
  18. {
  19. table.PrimaryKey("PK_Technologies", x => x.TechnologyId);
  20. });
  21. }
  22. protected override void Down(MigrationBuilder migrationBuilder)
  23. {
  24. migrationBuilder.DropTable(
  25. name: "Technologies");
  26. }
  27. }
  28. }