/// <summary> /// Perform one "select" command to database. Filter the data using "filter" class. /// </summary> /// <param name="filter">Class to use as filter</param> /// <returns>List with filtered data</returns> public virtual List <CategoriesInfo> GetSome(CategoriesInfo filter) { motor.OpenConnection(); List <CategoriesInfo> list = CategoriesDAO.GetSome(filter); if (this.closeConnectionWhenFinish) { motor.CloseConnection(); } return(list); }