/// <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); }
public List <Region> TraerTodos() { RegionDAO regDao = new RegionDAO(); return(regDao.GetAll()); }