feat(dal): Созданы таблицы JobGroupTypes+UnitsInTemplates, обновлен ключ уникального индекса шаблонов
This commit is contained in:
27
PARR.DAL/Services/Implementations/Job/JobGroupTypeService.cs
Normal file
27
PARR.DAL/Services/Implementations/Job/JobGroupTypeService.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using PARR.DAL.Context;
|
||||
using PARR.DAL.Models.Job;
|
||||
using PARR.DAL.Services.Abstracts;
|
||||
using PARR.DAL.Services.Interfaces.Job;
|
||||
|
||||
namespace PARR.DAL.Services.Implementations.Job
|
||||
{
|
||||
internal class JobGroupTypeService : BaseService<JobGroupType>, IJobGroupTypeService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
private readonly ILogger<JobGroupTypeService> logger;
|
||||
|
||||
protected override DbSet<JobGroupType> EntitySet => dataContext.JobGroupTypes;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
public JobGroupTypeService(
|
||||
DataContext dataContext,
|
||||
ILogger<JobGroupTypeService> logger
|
||||
) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
this.logger = logger;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user