DD.WellWorkover.Cloud/AsbCloudDb/Model/Well.cs
2021-04-07 18:01:56 +05:00

42 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
#nullable disable
namespace AsbCloudDb.Model
{
[Table("t_well"), Comment("скважины")]
public partial class Well: IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("caption")]
[StringLength(255)]
public string Caption { get; set; }
[Column("id_cluster")]
public int? IdCluster { get; set; }
[Column("id_customer")]
public int? IdCustomer { get; set; }
[Column("id_telemetry")]
public int? IdTelemetry { get; set; }
[ForeignKey(nameof(IdCluster))]
[InverseProperty(nameof(Model.Cluster.Wells))]
public virtual Cluster Cluster { get; set; }
[ForeignKey(nameof(IdCustomer))]
[InverseProperty(nameof(Model.Customer.Wells))]
public virtual Customer Customer { get; set; }
[ForeignKey(nameof(IdTelemetry))]
[InverseProperty(nameof(Model.Telemetry.Well))]
public virtual Telemetry Telemetry { get; set; }
}
}