using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.DAL.Context;
using PARR.DAL.Services.Abstracts;
using PARR.DAL.Services.Interfaces.Job;

namespace PARR.DAL.Services.Implementations.Job
{
    internal class FieldFilterService : BaseService<Models.Job.JobFieldFilter>, IFieldFilterService
    {
        private readonly DataContext dataContext;

        protected override DbSet<Models.Job.JobFieldFilter> EntitySet => dataContext.FieldFilters;

        protected override DataContext EntitiContext => dataContext;
        public FieldFilterService(DataContext dataContext, ILogger<FieldFilterService> logger) : base(logger)
        {
            this.dataContext = dataContext;
        }
    }
}
