Klassen erweitert
This commit is contained in:
@@ -9,7 +9,7 @@ namespace KanSan.Base
|
||||
public class UnitOfWork : IUnitOfWork
|
||||
{
|
||||
private KanSanContext _dbContext;
|
||||
private BaseRepository<Baustelle> _baustellen;
|
||||
private BaseRepository<Projekt> _baustellen;
|
||||
private BaseRepository<Kunde> _kunden;
|
||||
|
||||
public UnitOfWork(KanSanContext dbContext)
|
||||
@@ -17,11 +17,11 @@ namespace KanSan.Base
|
||||
_dbContext = dbContext;
|
||||
}
|
||||
|
||||
public IRepository<Baustelle> BaustellenRepository
|
||||
public IRepository<Projekt> BaustellenRepository
|
||||
{
|
||||
get
|
||||
{
|
||||
return _baustellen ?? (_baustellen = new BaseRepository<Baustelle>(_dbContext));
|
||||
return _baustellen ?? (_baustellen = new BaseRepository<Projekt>(_dbContext));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user