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

24 lines
826 B
C#

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace AsbCloudDb.Model
{
[Table("t_measure_category"), Comment("Категория последних данных")]
public class MeasureCategory : IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("name"), Comment("Название категории")]
public string Name { get; set; } = null!;
[Column("short_name"), Comment("Короткое название категории")]
public string? ShortName { get; set; }
[InverseProperty(nameof(Model.Measure.Category))]
public virtual ICollection<Measure> Measures { get; set; } = null!;
}
}