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

37 lines
932 B
C#
Raw Normal View History

2021-07-27 14:43:30 +05:00
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("Операции по скважине")]
2021-08-10 14:35:00 +05:00
public class WellOperation: IId, IIdWell
2021-07-27 14:43:30 +05:00
{
[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; }
}
}