feat(dal,aihitloader): Создали таблицы схемы Units и сервисы к ним.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.Constants;
|
||||
using PARR.DAL.Contracts;
|
||||
using PARR.DAL.Models;
|
||||
using PARR.DAL.Models.Unit;
|
||||
|
||||
namespace PARR.DAL.Context
|
||||
{
|
||||
@@ -64,6 +64,22 @@ namespace PARR.DAL.Context
|
||||
|
||||
public DbSet<ParrComponent> ParrComponents { get; set; }
|
||||
|
||||
#region Units
|
||||
|
||||
public DbSet<Unit> Units { get; set; }
|
||||
|
||||
public DbSet<UnitField> UnitFields { get; set; }
|
||||
|
||||
public DbSet<UnitFieldValue> UnitFieldValues { get; set; }
|
||||
|
||||
public DbSet<UnitInField> UnitInFields { get; set; }
|
||||
|
||||
public DbSet<UnitInValue> UnitInValues { get; set; }
|
||||
|
||||
public DbSet<UnitFieldInUnitFieldValue> UnitFieldInUnitFieldValues { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
|
||||
11
PARR.DAL/Context/DataContextSettings.cs
Normal file
11
PARR.DAL/Context/DataContextSettings.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace PARR.DAL.Context
|
||||
{
|
||||
internal static class DataContextSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Хранение ЭК с компонентным составом, РГ, Типы, С/н, ip, отвтетственные (не пишем шаблоны, расписания)
|
||||
/// </summary>
|
||||
public const string Unit = "unit";
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user