forked from ddrilling/AsbCloudServer
24 lines
807 B
C#
24 lines
807 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; }
|
|
|
|
[Column("short_name"), Comment("Короткое название категории")]
|
|
public string ShortName { get; set; }
|
|
|
|
[InverseProperty(nameof(Model.Measure.Category))]
|
|
public virtual ICollection<Measure> Measures { get; set; }
|
|
}
|
|
} |