25 lines
808 B
C#
25 lines
808 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 JobJournalService : BaseService<JobJournal>, IJobJournalService
|
|
{
|
|
private readonly DataContext dataContext;
|
|
private readonly ILogger<JobJournalService> logger;
|
|
|
|
public JobJournalService(DataContext dataContext, ILogger<JobJournalService> logger) : base(logger)
|
|
{
|
|
this.dataContext = dataContext;
|
|
this.logger = logger;
|
|
}
|
|
protected override DbSet<JobJournal> EntitySet => dataContext.JobJournals;
|
|
|
|
protected override DataContext EntitiContext => dataContext;
|
|
}
|
|
}
|