Статусы ЭК вынесены из Hosts. Добавлен фильтр по статусам эк в генератор.
This commit is contained in:
17
PARR.DAL/Models/EkStatus.cs
Normal file
17
PARR.DAL/Models/EkStatus.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
[Table("EkStatuses")]
|
||||
public class EkStatus
|
||||
{
|
||||
[Key]
|
||||
public int Code { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public ICollection<Host> Hosts { get; set; } = new HashSet<Host>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user