예제 #1
0
        public static List <T> PagedGetEntities(System.Linq.Expressions.Expression <Func <T, bool> > query, int start, int pageSize, out int totalCount)
        {
            try
            {
                List <T> results = new List <T>();
                results = EntityDb <T> .PagedGetByLinqQuery(query, start, pageSize, out totalCount);

                EntityDb <T> .CloseSession();

                return(results);
            }
            catch (Exception)
            {
                throw;
            }
        }