2021-06-24 13:02:31 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-07-21 15:29:19 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-06-24 13:02:31 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2021-08-18 15:38:33 +05:00
|
|
|
|
[Table("t_well_operation_category"), Comment("Справочник операций на скважине")]
|
2021-08-16 14:19:43 +05:00
|
|
|
|
public class WellOperationCategory
|
2021-06-24 13:02:31 +05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
2021-08-13 14:50:13 +05:00
|
|
|
|
|
2021-08-16 14:19:43 +05:00
|
|
|
|
[Column("name"), Comment("Название категории операции")]
|
2021-06-24 13:02:31 +05:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
2021-08-13 15:35:03 +05:00
|
|
|
|
[Column("code"), Comment("Код операции")]
|
|
|
|
|
public int Code { get; set; }
|
|
|
|
|
|
2021-07-19 15:31:50 +05:00
|
|
|
|
[InverseProperty(nameof(TelemetryAnalysis.Operation))]
|
|
|
|
|
public virtual ICollection<TelemetryAnalysis> Analysis { get; set; }
|
2021-06-24 13:02:31 +05:00
|
|
|
|
}
|
|
|
|
|
}
|