26 lines
767 B
C#
26 lines
767 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Logging;
|
|
using PARR.DAL.Context;
|
|
using PARR.DAL.Services.Abstracts;
|
|
using PARR.DAL.Services.Interfaces.Task;
|
|
|
|
namespace PARR.DAL.Services.Implementations.Task
|
|
{
|
|
internal class TaskService : BaseService<PARR.DAL.Models.Task.Task>, ITaskService
|
|
{
|
|
private readonly DataContext dataContext;
|
|
|
|
protected override DbSet<Models.Task.Task> EntitySet => dataContext.Tasks;
|
|
|
|
protected override DataContext EntitiContext => dataContext;
|
|
|
|
public TaskService(DataContext dataContext, ILogger<TaskService> logger) : base(logger)
|
|
{
|
|
this.dataContext = dataContext;
|
|
}
|
|
|
|
|
|
// метод атомарного взятия в работу
|
|
}
|
|
}
|