Add Patch 3 in API
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m46s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 3m46s
This commit is contained in:
parent
31edbf577f
commit
a44f321652
@ -1,14 +1,15 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Models.Interfaces;
|
||||
using Models.Models;
|
||||
|
||||
namespace Models.Repositories
|
||||
{
|
||||
public class GenericRepository<T> : IGenericRepository<T> where T : class
|
||||
{
|
||||
private readonly DbContext _context;
|
||||
private readonly PhronCareOperationsHubContext _context;
|
||||
private readonly DbSet<T> _dbSet;
|
||||
|
||||
public GenericRepository(DbContext context)
|
||||
public GenericRepository(PhronCareOperationsHubContext context)
|
||||
{
|
||||
_context = context;
|
||||
_dbSet = _context.Set<T>();
|
||||
|
||||
@ -5,14 +5,10 @@ using Models.Models;
|
||||
|
||||
namespace Models.Repositories
|
||||
{
|
||||
public class PhSAccountTypeRepository : GenericRepository<EAccountType>, IPhSAccountTypeRepository
|
||||
{
|
||||
private readonly PhronCareOperationsHubContext _context;
|
||||
|
||||
public PhSAccountTypeRepository(PhronCareOperationsHubContext context) : base(context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
public class PhSAccountTypeRepository(PhronCareOperationsHubContext context) : GenericRepository<EAccountType>(context), IPhSAccountTypeRepository
|
||||
{
|
||||
private readonly PhronCareOperationsHubContext _context = context;
|
||||
|
||||
public async Task<EAccountType?> GetByNameAsync(string name)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user