Resolve all warnings
This commit is contained in:
@@ -6,9 +6,9 @@ namespace GerbilManagerWebAPI.DAL
|
||||
public class UnitOfWork : IDisposable
|
||||
{
|
||||
private ApplicationContext context;
|
||||
private GenericRepository<Gerbil> gerbilRepository;
|
||||
private GenericRepository<Litter> litterRepository;
|
||||
private GenericRepository<Breeder> breederRepository;
|
||||
private GenericRepository<Gerbil> gerbilRepository = null!;
|
||||
private GenericRepository<Litter> litterRepository = null!;
|
||||
private GenericRepository<Breeder> breederRepository = null!;
|
||||
|
||||
public GenericRepository<Gerbil> GerbilRepository
|
||||
{
|
||||
@@ -46,10 +46,7 @@ namespace GerbilManagerWebAPI.DAL
|
||||
}
|
||||
}
|
||||
|
||||
public UnitOfWork(ApplicationContext context)
|
||||
{
|
||||
this.context = context;
|
||||
}
|
||||
public UnitOfWork(ApplicationContext context) => this.context = context;
|
||||
|
||||
public void Save()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user