private static IQueryable <GameDataTransferObject> QueryGames(TicTacToeContext context) { return(context.Games .Include(gameDTO => gameDTO.History) .ThenInclude(history => history.Turns) .Include(gameDTO => gameDTO.Board) .Include(gameDTO => gameDTO.TicPlayer) .Include(gameDTO => gameDTO.TacPlayer)); }
public UserAPI(TicTacToeContext context, IMapper mapper) { gameRepository = new GameDbRepository(context, mapper); }
private static IQueryable <UserDataTransferObject> QueryUsers(TicTacToeContext context) { return(context.Users); }
public GameDbRepository(TicTacToeContext context, IMapper mapper) { this.mapper = mapper; this.context = context; }