[WIP] Models/Entities: Remove EF proxies
Some checks failed
Test / Run tests (push) Failing after 2m45s

This commit is contained in:
2026-04-01 16:24:03 +02:00
parent bb1dd3e4e9
commit e983ef918d
30 changed files with 428 additions and 251 deletions

View File

@@ -47,7 +47,7 @@ namespace Elwig.Models.Dtos {
}
public static async Task<MemberListData> FromQuery(IQueryable<Member> query, List<string> filterNames, IEnumerable<string> filterAreaCom) {
var areaComs = await query.ToDictionaryAsync(m => m.MgNr, m => Utils.ActiveAreaCommitments(m.AreaCommitments));
var areaComs = await query.Include(m => m.AreaCommitments).ToDictionaryAsync(m => m.MgNr, m => Utils.ActiveAreaCommitments(m.AreaCommitments));
return new((await query
.Include(m => m.DefaultWbKg!.AtKg)
.Include(m => m.Branch)