public static CardEntity[] GetPlayerDeckCardsIncludeBox(this CardContext context, GameEntity playerEntity) { return(context.GetDeckCards() .Where(c => c.hasOwner && c.owner.Entity == playerEntity) .ToArray()); }