Objekte können hinzugefügt werdne

This commit is contained in:
Husky
2020-03-17 20:50:44 +01:00
parent 8b1336a014
commit ed2eb35be4
6 changed files with 65 additions and 16 deletions

View File

@@ -25,6 +25,7 @@ namespace KanSan.Base
public UnitOfWork(KanSanContext dbContext)
{
_dbContext = dbContext;
//_dbContext.ChangeTracker.QueryTrackingBehavior = Microsoft.EntityFrameworkCore.QueryTrackingBehavior.NoTracking;
}
public IRepository<Projekt> ProjekteRepository => _projekte ?? (_projekte = new BaseRepository<Projekt>(_dbContext));