table Template
This commit is contained in:
25
PARR.DAL/Services/Implementations/TemplateService.cs
Normal file
25
PARR.DAL/Services/Implementations/TemplateService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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 TemplateService : BaseService<Template>, ITemplateService
|
||||
{
|
||||
private readonly DataContext dataContext;
|
||||
private readonly ILogger<TemplateService> logger;
|
||||
|
||||
protected override DbSet<Template> EntitySet => dataContext.Templates;
|
||||
|
||||
protected override DataContext EntitiContext => dataContext;
|
||||
|
||||
public TemplateService(DataContext dataContext, ILogger<TemplateService> logger) : base(logger)
|
||||
{
|
||||
this.dataContext = dataContext;
|
||||
this.logger = logger;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user