добавление миграции - очистка таблицы t_daily_report

This commit is contained in:
eugeniy_ivanov 2022-07-05 14:27:23 +05:00
parent 4bf4a93b6b
commit 73f804d3d6
3 changed files with 6093 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,19 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Remove_DailyReportData : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.Sql("DELETE FROM [t_daily_report]", true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View File

@ -137,7 +137,7 @@ namespace AsbCloudDb.Migrations
});
});
modelBuilder.Entity("AsbCloudDb.Model.DailyReport", b =>
modelBuilder.Entity("AsbCloudDb.Model.DailyReportDB.DailyReport", b =>
{
b.Property<int>("IdWell")
.HasColumnType("integer")
@ -5397,7 +5397,7 @@ namespace AsbCloudDb.Migrations
b.Navigation("CompanyType");
});
modelBuilder.Entity("AsbCloudDb.Model.DailyReport", b =>
modelBuilder.Entity("AsbCloudDb.Model.DailyReportDB.DailyReport", b =>
{
b.HasOne("AsbCloudDb.Model.Well", "Well")
.WithMany()