2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-10-12 10:39:42 +05:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
{
|
2021-12-02 11:44:45 +05:00
|
|
|
[Table("t_well_composite"), Comment("Композитная скважина")]
|
2022-06-09 11:19:52 +05:00
|
|
|
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))]
|
2022-05-06 10:58:52 +05:00
|
|
|
public virtual Well Well { get; set; } = null!;
|
2021-10-12 10:39:42 +05:00
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWellSrc))]
|
|
|
|
[InverseProperty(nameof(Model.Well.WellCompositeSrcs))]
|
2022-05-06 10:58:52 +05:00
|
|
|
public virtual Well WellSrc { get; set; } = null!;
|
2021-10-12 10:39:42 +05:00
|
|
|
|
|
|
|
[ForeignKey(nameof(IdWellSectionType))]
|
|
|
|
[InverseProperty(nameof(Model.WellSectionType.WellComposites))]
|
2022-05-06 10:58:52 +05:00
|
|
|
public virtual WellSectionType WellSectionType { get; set; } = null!;
|
2021-10-12 10:39:42 +05:00
|
|
|
}
|
|
|
|
}
|