2021-08-24 10:59:10 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
2021-08-28 20:00:04 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-24 10:59:10 +05:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model
|
|
|
|
|
{
|
2022-05-06 10:58:52 +05:00
|
|
|
|
#nullable disable
|
2021-08-28 20:00:04 +05:00
|
|
|
|
[Table("t_measure_category"), Comment("Категория последних данных")]
|
|
|
|
|
public class MeasureCategory : IId
|
2021-08-24 10:59:10 +05:00
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("name"), Comment("Название категории")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
|
|
|
|
public string ShortName { get; set; }
|
2021-08-28 20:00:04 +05:00
|
|
|
|
|
|
|
|
|
[InverseProperty(nameof(Model.Measure.Category))]
|
|
|
|
|
public virtual ICollection<Measure> Measures { get; set; }
|
2021-08-24 10:59:10 +05:00
|
|
|
|
}
|
|
|
|
|
}
|