示例#1
0
        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);
        }
示例#2
0
        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);
        }