Rename Well.State to Well.IdState

This commit is contained in:
Фролов 2021-10-20 11:21:14 +05:00
parent 16e17c0559
commit 701f5b26d2
4 changed files with 2718 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace AsbCloudDb.Migrations
{
public partial class Rename_Well_State_to_IdState : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
}
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

View File

@ -1636,6 +1636,11 @@ namespace AsbCloudDb.Migrations
.HasColumnType("integer")
.HasColumnName("id_cluster");
b.Property<int>("IdState")
.HasColumnType("integer")
.HasColumnName("state")
.HasComment("0 - неизвестно, 1 - в работе, 2 - завершена");
b.Property<int?>("IdTelemetry")
.HasColumnType("integer")
.HasColumnName("id_telemetry");
@ -1652,11 +1657,6 @@ namespace AsbCloudDb.Migrations
.HasColumnType("double precision")
.HasColumnName("longitude");
b.Property<int>("State")
.HasColumnType("integer")
.HasColumnName("state")
.HasComment("0 - неизвестно, 1 - в работе, 2 - завершена");
b.HasKey("Id");
b.HasIndex("IdCluster");

View File

@ -29,7 +29,7 @@ namespace AsbCloudDb.Model
public int? IdWellType { get; set; }
[Column("state"), Comment("0 - неизвестно, 1 - в работе, 2 - завершена")]
public int State { get; set; }
public int IdState { get; set; }
[Column("latitude")]
public double? Latitude { get; set; }