Files
parr_api/PARR.DAL/Services/Implementations/TnkService.cs

25 lines
752 B
C#
Raw Normal View History

2023-09-20 11:52:30 +10:00
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 TnkService : BaseService<Tnk>, ITnkService
2023-09-20 11:52:30 +10:00
{
private readonly ILogger<TnkService> logger;
2023-09-20 11:52:30 +10:00
private readonly DataContext dataContext;
public TnkService(ILogger<TnkService> logger, DataContext dataContext) : base(logger)
2023-09-20 11:52:30 +10:00
{
this.logger = logger;
this.dataContext = dataContext;
2023-09-20 11:52:30 +10:00
}
protected override DbSet<Tnk> EntitySet => dataContext.Tnks;
2023-09-20 11:52:30 +10:00
protected override DataContext EntitiContext => dataContext;
}
}