DD.WellWorkover.Cloud/AsbCloudDb/Model/WellComposite.cs
2021-10-12 10:39:42 +05:00

33 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
namespace AsbCloudDb.Model
{
[Table("t_well_сomposite"), Comment("Композитная скважина")]
public class WellComposite : IIdWell
{
[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; }
[ForeignKey(nameof(IdWellSrc))]
[InverseProperty(nameof(Model.Well.WellCompositeSrcs))]
public virtual Well WellSrc { get; set; }
[ForeignKey(nameof(IdWellSectionType))]
[InverseProperty(nameof(Model.WellSectionType.WellComposites))]
public virtual WellSectionType WellSectionType { get; set; }
}
}