Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

20220928065754_Changed for filename to be list of FileModels.cs 1.0KB

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