2024-07-04 11:02:45 +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
|
|
|
|
{
|
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("Название категории")]
|
2023-02-17 17:58:07 +05:00
|
|
|
public string Name { get; set; } = null!;
|
2021-08-24 10:59:10 +05:00
|
|
|
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
2023-02-17 17:58:07 +05:00
|
|
|
public string? ShortName { get; set; }
|
2021-08-28 20:00:04 +05:00
|
|
|
|
|
|
|
[InverseProperty(nameof(Model.Measure.Category))]
|
2023-02-17 17:58:07 +05:00
|
|
|
public virtual ICollection<Measure> Measures { get; set; } = null!;
|
2021-08-24 10:59:10 +05:00
|
|
|
}
|
|
|
|
}
|