示例#1
0
        /// <summary>
        /// Performs one "Select * from MyTable where MyColumn=MyFilter".
        /// </summary>
        /// <returns>List of found records.</returns>
        public virtual List <RegionInfo> GetAll(List <DataFilterExpressionDB> filterExpression)
        {
            motor.OpenConnection();
            List <RegionInfo> list = RegionDAO.GetAll(filterExpression);

            if (this.closeConnectionWhenFinish)
            {
                motor.CloseConnection();
            }
            return(list);
        }
示例#2
0
        public List <Region> TraerTodos()
        {
            RegionDAO regDao = new RegionDAO();

            return(regDao.GetAll());
        }