Sewerobject wird vollständig geladen
This commit is contained in:
@@ -36,9 +36,13 @@ namespace DaSaSo.EntityFramework.Services
|
||||
return await _nonQueryDataService.Delete(id);
|
||||
}
|
||||
|
||||
public Task<SewerObject> Get(int id)
|
||||
public async Task<SewerObject> Get(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
using (DaSaSoDbContext context = _contextFactory.CreateDbContext())
|
||||
{
|
||||
SewerObject? s = await context.SewerObjects.Include("BuildingSite").FirstOrDefaultAsync((e) => e.Id == id);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
public Task<IEnumerable<SewerObject>> GetAll()
|
||||
|
||||
Reference in New Issue
Block a user