mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
temporary fix for pomelo ef/.net 8 query query translation
This commit is contained in:
parent
f8f6ca2c0d
commit
b003ba2b75
@ -91,9 +91,9 @@ public class ClientResourceQueryHelper : IResourceQueryHelper<ClientResourceRequ
|
|||||||
? iqGroupedClientAliases.OrderByDescending(clientAlias => clientAlias.Key.LastConnection)
|
? iqGroupedClientAliases.OrderByDescending(clientAlias => clientAlias.Key.LastConnection)
|
||||||
: iqGroupedClientAliases.OrderBy(clientAlias => clientAlias.Key.LastConnection);
|
: iqGroupedClientAliases.OrderBy(clientAlias => clientAlias.Key.LastConnection);
|
||||||
|
|
||||||
var clientIds = iqGroupedClientAliases.Select(g => g.Key.ClientId)
|
var clientIds = await iqGroupedClientAliases.Select(g => g.Key.ClientId)
|
||||||
.Skip(query.Offset)
|
.Skip(query.Offset)
|
||||||
.Take(query.Count);
|
.Take(query.Count).ToListAsync(); // todo: this change was for a pomelo limitation and may be addressed in future version
|
||||||
|
|
||||||
// this pulls in more records than we need, but it's more efficient than ordering grouped entities
|
// this pulls in more records than we need, but it's more efficient than ordering grouped entities
|
||||||
var clientLookups = await clientAliases
|
var clientLookups = await clientAliases
|
||||||
|
Loading…
x
Reference in New Issue
Block a user