DD.WellWorkover.Cloud/AsbCloudDb/Model/Operation.cs
2021-08-13 15:35:03 +05:00

28 lines
911 B
C#

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_operations"), Comment("Справочник операций на скважине")]
public class Operation
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("type"), Comment("Тип операции (авто/ручной ввод)")]
public int OperationType { get; set; }
[Column("name"), Comment("Название операции")]
public string Name { get; set; }
[Column("code"), Comment("Код операции")]
public int Code { get; set; }
[InverseProperty(nameof(TelemetryAnalysis.Operation))]
public virtual ICollection<TelemetryAnalysis> Analysis { get; set; }
}
}