Beispiel #1
0
        /// <summary>
        /// Selects game players base on supplied filter
        /// </summary>
        /// <param name="filter">Filter used to select game players</param>
        /// <returns>A list of game players that satisfy the supplied filter</returns>
        public List <Entities.GamePlayer> Execute(Entities.Filters.GamePlayer.SelectAll filter)
        {
            List <Entities.GamePlayer> gamePlayers = new List <Entities.GamePlayer>();

            using (DbCommand cmd = _db.GetStoredProcCommand("GamePlayer_Select"))
            {
                using (IDataReader idr = _db.ExecuteReader(cmd))
                {
                    while (idr.Read())
                    {
                        gamePlayers.Add(new Entities.GamePlayer(idr));
                    }
                }
            }

            return(gamePlayers);
        }
Beispiel #2
0
 /// <summary>
 /// Selects game players base on supplied filter
 /// </summary>
 /// <param name="filter">Filter used to select game players</param>
 /// <returns>A list of game players that satisfy the supplied filter</returns>
 public List <Entities.GamePlayer> Execute(Entities.Filters.GamePlayer.SelectAll filter)
 {
     return(_selectGamePlayers.Execute(filter));
 }