Exemplo n.º 1
0
        public static IBoundClient <T> Take <T>(this IBoundClient <T> client, int count)
            where T : class
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.Top(count: count));
        }
 public static IPageable <T> WithPagination <T>(this IBoundClient <T> client, int pageSize, int pageIndex)
     where T : class
 {
     return(new Pageable <T>(client.Top(pageSize).Skip((pageIndex - 1) * pageSize)));
 }
Exemplo n.º 3
0
 public ODataSet <T> Take(long number)
 {
     bounder = bounder.Top(number);
     return(this);
 }