Files
parr_api/PARR.DAL/Services/Implementations/WorkService.cs
2023-09-20 14:48:58 +10:00

26 lines
761 B
C#

using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.DAL.Context;
using PARR.DAL.Models;
using PARR.DAL.Services.Abstracts;
using PARR.DAL.Services.Interfaces;
namespace PARR.DAL.Services.Implementations
{
internal class WorkService : BaseService<Work>, IWorkService
{
private readonly DataContext dataContext;
private readonly ILogger<WorkService> logger;
public WorkService(DataContext dataContext, ILogger<WorkService> logger) : base(logger)
{
this.dataContext = dataContext;
this.logger = logger;
}
protected override DbSet<Work> EntitySet => dataContext.Works;
protected override DataContext EntitiContext => dataContext;
}
}