Добавление секций

This commit is contained in:
eugeniy_ivanov 2022-12-10 02:58:09 +05:00
parent 39a2ddc3a5
commit feefd490e2
4 changed files with 6916 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,40 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_newSection_t_well_section_type : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "t_well_section_type",
columns: new[] { "id", "caption" },
values: new object[,]
{
{ 31, "Техническая колонна" },
{ 32, "Техническая колонна 2" },
{ 33, "Техническая колонна 3" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 31);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 32);
migrationBuilder.DeleteData(
table: "t_well_section_type",
keyColumn: "id",
keyValue: 33);
}
}
}

View File

@ -5336,6 +5336,21 @@ namespace AsbCloudDb.Migrations
{
Id = 30,
Caption = "Хвостовик 5"
},
new
{
Id = 31,
Caption = "Техническая колонна"
},
new
{
Id = 32,
Caption = "Техническая колонна 2"
},
new
{
Id = 33,
Caption = "Техническая колонна 3"
});
});

View File

@ -38,6 +38,10 @@
new (){ Id = 28, Caption = "Эксплуатационная колонна 5"},
new (){ Id = 29, Caption = "Транспортный ствол 5"},
new (){ Id = 30, Caption = "Хвостовик 5"},
new (){ Id = 31, Caption = "Техническая колонна"},
new (){ Id = 32, Caption = "Техническая колонна 2"},
new (){ Id = 33, Caption = "Техническая колонна 3"},
};
}
}