forked from ddrilling/AsbCloudServer
21 lines
665 B
C#
21 lines
665 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Collections.Generic;
|
|
|
|
namespace AsbCloudDb.Model
|
|
{
|
|
[Table("t_operation"), Comment("Справочник операций на скважине")]
|
|
public class Operation
|
|
{
|
|
[Key]
|
|
[Column("id")]
|
|
public int Id { get; set; }
|
|
[Column("name"), Comment("Название операции")]
|
|
public string Name { get; set; }
|
|
|
|
[InverseProperty(nameof(DrillingAnalysis.Operation))]
|
|
public virtual ICollection<DrillingAnalysis> Analysis { get; set; }
|
|
}
|
|
}
|