feat(dal): Модели и сервисы для работы с Task
This commit is contained in:
25
PARR.DAL/Services/Implementations/Task/TaskService.cs
Normal file
25
PARR.DAL/Services/Implementations/Task/TaskService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
// метод атомарного взятия в работу
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user