DD.WellWorkover.Cloud/AsbCloudDb/Model/WellOperation.cs
2021-08-10 14:35:00 +05:00

37 lines
932 B
C#

using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
#nullable disable
namespace AsbCloudDb.Model
{
[Table("t_well_operation"), Comment("Операции по скважине")]
public class WellOperation: IId, IIdWell
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("id_well")]
public int IdWell { get; set; }
[Column("caption")]
public string Caption { get; set; }
[Column("description")]
public string Description { get; set; }
[Column("casing_section")]
public double CasingSection { get; set; }
[Column("well_depth")]
public double WellDepth { get; set; }
[JsonIgnore]
[ForeignKey(nameof(IdWell))]
public virtual Well Well { get; set; }
}
}