feat(dal): добавлена таблица UnitRegionalEkPtkGroups, добавлен сервис IUnitRegionalEkPtkGroupService
This commit is contained in:
@@ -25,5 +25,7 @@ namespace PARR.DAL.Models.Unit
|
||||
public ICollection<UnitInValue> UnitInValues { get; set; } = new HashSet<UnitInValue>();
|
||||
|
||||
public ICollection<UnitFieldInUnitFieldValue> FieldValues { get; set; } = new HashSet<UnitFieldInUnitFieldValue>();
|
||||
|
||||
public UnitRegionalEkPtkGroup? RegionalEkPtkGroup { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
18
PARR.DAL/Models/Unit/UnitRegionalEkPtkGroup.cs
Normal file
18
PARR.DAL/Models/Unit/UnitRegionalEkPtkGroup.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.DAL.Context;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace PARR.DAL.Models.Unit
|
||||
{
|
||||
[Table("RegionalEkPtkGroups", Schema = DataContextSettings.Unit)]
|
||||
[Comment("Таблица - региональные группы ПТК")]
|
||||
public class UnitRegionalEkPtkGroup
|
||||
{
|
||||
[Key]
|
||||
public Guid FieldValueId { get; set; }
|
||||
|
||||
[ForeignKey(nameof(FieldValueId))]
|
||||
public UnitFieldValue? FieldValue { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using PARR.DAL.Context;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace PARR.DAL.Models
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user