Add well related interface

This commit is contained in:
Фролов 2021-08-10 14:35:00 +05:00
parent 57dd3110b8
commit 8102442f81
6 changed files with 21 additions and 5 deletions

View File

@ -7,7 +7,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudDb.Model
{
[Table("t_files"), Comment("Файлы всех категорий")]
public class File : IId
public class File : IId, IIdWell
{
[Key]
[Column("id")]

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AsbCloudDb.Model
{
/// <summary>
/// For well related entities
/// </summary>
public interface IIdWell
{
int IdWell { get; set; }
}
}

View File

@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_relation_company_well"), Comment("отношение скважин и компаний")]
public partial class RelationCompanyWell
public partial class RelationCompanyWell: IIdWell
{
[Column("id_well")]
public int IdWell { get; set; }

View File

@ -6,7 +6,7 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_report_properties"), Comment("Отчеты с данными по буровым")]
public class ReportProperties : IId
public class ReportProperties: IId, IIdWell
{
[Key]
[Column("id")]

View File

@ -8,7 +8,7 @@ using System.Text.Json.Serialization;
namespace AsbCloudDb.Model
{
[Table("t_well_operation"), Comment("Операции по скважине")]
public class WellOperation
public class WellOperation: IId, IIdWell
{
[Key]
[Column("id")]

View File

@ -8,7 +8,7 @@ namespace AsbCloudDb.Model
{
[Table("t_well_section"), Comment("секция скважины")]
public class WellSection
public class WellSection: IId, IIdWell
{
[Key]
[Column("id")]