Exemplo n.º 1
0
        public static IQueryable <TEntity> SelectAll(int maximumRows, int startRowIndex)
        {
            #region Validation
            if (maximumRows <= 0)
            {
                throw new ArgumentOutOfRangeException("maximumRows");
            }

            if (startRowIndex < 0)
            {
                throw new ArgumentOutOfRangeException("startRowIndex");
            }
            #endregion

            return(EntityTable.Skip(startRowIndex).Take(maximumRows));
        }