Добавлен справочник ResponseArea
This commit is contained in:
@@ -24,11 +24,14 @@ namespace PARR.DAL.Models
|
||||
//public string? LinkEK { get; set; }
|
||||
|
||||
//TODO: удалить поле Status, вместо него использовать EkStatusCode
|
||||
public string? Status { get; set; }
|
||||
//public string? StatusStr { get; set; }
|
||||
|
||||
public string? WorkGroup { get; set; }
|
||||
|
||||
public string? ResponseArea { get; set; }
|
||||
//TODO: удалить поле ResponseAreaStr
|
||||
//public string? ResponseAreaStr { get; set; }
|
||||
|
||||
public int ResponseAreaCode { get; set; }
|
||||
|
||||
|
||||
public ICollection<ApplicationInHost> ApplicationsInHosts { get; set; } = new HashSet<ApplicationInHost>();
|
||||
@@ -38,5 +41,8 @@ namespace PARR.DAL.Models
|
||||
|
||||
[ForeignKey(nameof(EkStatusCode))]
|
||||
public EkStatus? EkStatus { get; set; }
|
||||
|
||||
[ForeignKey(nameof(ResponseAreaCode))]
|
||||
public ResponseArea? ResponseArea { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
17
PARR.DAL/Models/ResponseArea.cs
Normal file
17
PARR.DAL/Models/ResponseArea.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
[Table("ResponseAreas")]
|
||||
public class ResponseArea
|
||||
{
|
||||
[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