DD.WellWorkover.Cloud/AsbCloudDb/Model/ProcessMapPlan/ProcessMapPlanSection.cs

22 lines
810 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AsbCloudDb.Model.ProcessMapPlan;
using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model.ProcessMaps;
[Table("t_process_map_plan_section"), Comment("Конструкция скважины")]
public class ProcessMapPlanSection : ProcessMapPlanBase
{
[Column("outer_diameter"), Comment("Диаметр секции, мм., наружный")]
[Range(0.0, 9999.9)]
public double OuterDiameter { get; set; }
[Column("inner_diameter"), Comment("Диаметр секции, мм., внутренний")]
[Range(0.0, 9999.9)]
public double InnerDiameter { get; set; }
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanSection? Previous { get; set; }
}