forked from ddrilling/AsbCloudServer
Add well related interface
This commit is contained in:
parent
57dd3110b8
commit
8102442f81
@ -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")]
|
||||
|
16
AsbCloudDb/Model/IIdWell.cs
Normal file
16
AsbCloudDb/Model/IIdWell.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
@ -8,7 +8,7 @@ namespace AsbCloudDb.Model
|
||||
{
|
||||
|
||||
[Table("t_well_section"), Comment("секция скважины")]
|
||||
public class WellSection
|
||||
public class WellSection: IId, IIdWell
|
||||
{
|
||||
[Key]
|
||||
[Column("id")]
|
||||
|
Loading…
Reference in New Issue
Block a user