private static SerieFamiliaList GetList(string query, bool childs) { CriteriaEx criteria = SerieFamilia.GetCriteria(SerieFamilia.OpenSession()); criteria.Childs = childs; criteria.Query = query; SerieFamiliaList list = DataPortal.Fetch <SerieFamiliaList>(criteria); CloseSession(criteria.SessionCode); return(list); }
public static SerieFamiliaList GetList(bool childs) { CriteriaEx criteria = SerieFamilia.GetCriteria(SerieFamilia.OpenSession()); criteria.Childs = childs; criteria.Query = SerieFamiliaList.SELECT(); SerieFamiliaList list = DataPortal.Fetch <SerieFamiliaList>(criteria); CloseSession(criteria.SessionCode); return(list); }