Include game and icon in server list
This commit is contained in:
parent
ffb67180b1
commit
a5818089cd
1 changed files with 4 additions and 0 deletions
|
|
@ -108,6 +108,10 @@
|
|||
using (var serverService = DatabaseServiceFactory.Create<ServerService>())
|
||||
{
|
||||
Servers = await serverService
|
||||
.Query((q) =>
|
||||
{
|
||||
return q.Include(s => s.Game).ThenInclude(g => g.Media.Where(m => m.Type == SDK.Enums.MediaType.Icon));
|
||||
})
|
||||
.Include(s => s.CreatedBy)
|
||||
.Include(s => s.UpdatedBy)
|
||||
.SortBy(s => s.Name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue