2024-07-04 11:02:45 +05:00
|
|
|
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("отношение скважин и компаний")]
|
2022-06-09 11:19:52 +05:00
|
|
|
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))]
|
2023-02-20 14:21:52 +05:00
|
|
|
public virtual Well Well { get; set; } = null!;
|
2021-07-21 16:30:57 +05:00
|
|
|
|
|
|
|
[ForeignKey(nameof(IdCompany))]
|
|
|
|
[InverseProperty(nameof(Model.Company.RelationCompaniesWells))]
|
2023-02-20 14:21:52 +05:00
|
|
|
public virtual Company Company { get; set; } = null!;
|
2021-07-21 16:30:57 +05:00
|
|
|
}
|
|
|
|
}
|