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

26 lines
777 B
C#
Raw Normal View History

2021-07-21 16:30:57 +05:00
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
namespace AsbCloudDb.Model
{
[Table("t_relation_company_well"), Comment("отношение скважин и компаний")]
2021-08-10 14:35:00 +05:00
public partial class RelationCompanyWell: IIdWell
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; }
[ForeignKey(nameof(IdCompany))]
[InverseProperty(nameof(Model.Company.RelationCompaniesWells))]
public virtual Company Company { get; set; }
}
}