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

24 lines
779 B
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore;
2021-07-21 16:30:57 +05:00
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_relation_company_well"), Comment("отношение скважин и компаний")]
public partial class RelationCompanyWell : IWellRelated
2021-07-21 16:30:57 +05:00
{
[Column("id_well")]
public int IdWell { get; set; }
[Column("id_company")]
public int IdCompany { get; set; }
[ForeignKey(nameof(IdWell))]
[InverseProperty(nameof(Model.Well.RelationCompaniesWells))]
public virtual Well Well { get; set; } = null!;
2021-07-21 16:30:57 +05:00
[ForeignKey(nameof(IdCompany))]
[InverseProperty(nameof(Model.Company.RelationCompaniesWells))]
public virtual Company Company { get; set; } = null!;
2021-07-21 16:30:57 +05:00
}
}