DD.WellWorkover.Cloud/AsbCloudDb/Model/WellComposite.cs

31 lines
1.1 KiB
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore;
2021-10-12 10:39:42 +05:00
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_well_composite"), Comment("Композитная скважина")]
public class WellComposite : IWellRelated
2021-10-12 10:39:42 +05:00
{
[Column("id_well"), Comment("Id скважины получателя")]
public int IdWell { get; set; }
[Column("id_well_src"), Comment("Id скважины композита")]
public int IdWellSrc { get; set; }
[Column("id_well_section_type"), Comment("Id тип секции композита")]
public int IdWellSectionType { get; set; }
[ForeignKey(nameof(IdWell))]
[InverseProperty(nameof(Model.Well.WellComposites))]
public virtual Well Well { get; set; } = null!;
2021-10-12 10:39:42 +05:00
[ForeignKey(nameof(IdWellSrc))]
[InverseProperty(nameof(Model.Well.WellCompositeSrcs))]
public virtual Well WellSrc { get; set; } = null!;
2021-10-12 10:39:42 +05:00
[ForeignKey(nameof(IdWellSectionType))]
[InverseProperty(nameof(Model.WellSectionType.WellComposites))]
public virtual WellSectionType WellSectionType { get; set; } = null!;
2021-10-12 10:39:42 +05:00
}
}