/// <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 <EmployeesInfo> GetSome(EmployeesInfo filter) { motor.OpenConnection(); List <EmployeesInfo> list = EmployeesDAO.GetSome(filter); if (this.closeConnectionWhenFinish) { motor.CloseConnection(); } return(list); }