Force max depth on Game
This commit is contained in:
parent
7c87bfcf24
commit
50879edf4d
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ namespace LANCommander.Server
|
|||
opt => opt.MapFrom(src => src.PrimaryAction));
|
||||
|
||||
CreateMap<Data.Models.Game, SDK.Models.Game>()
|
||||
.MaxDepth(5)
|
||||
.ForMember(dest =>
|
||||
dest.DependentGames,
|
||||
opt => opt.MapFrom(src => src.DependentGames.Select(d => d.Id)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue