Exemplo n.º 1
0
        /// <summary>
        /// Processes the skip operator (if any) and returns the combined query.
        /// </summary>
        /// <param name="skip">The skip amount or null if none was specified.</param>
        /// <returns> the skip clause </returns>
        public static long?ProcessSkip(long?skip)
        {
            if (skip.HasValue)
            {
                if (skip < 0)
                {
                    throw new ODataException(ODataErrorStrings.MetadataBinder_SkipRequiresNonNegativeInteger(skip.ToString()));
                }

                return(skip);
            }

            return(null);
        }