Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6839587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:44:11+00:00 2026-05-26T23:44:11+00:00

I have an OData Service setup using WCF Data Services (v2) that is hosted

  • 0

I have an OData Service setup using WCF Data Services (v2) that is hosted on the server. In the client applications we are creating, we are wondering if there is any way we can programmatically set the paging size?

For example, this works if I set it in the .svc:

public static void InitializeService(ODataServiceConfiguration serviceConfig)
{
    serviceConfig.SetServiceOperationAccessRule("*", ServiceOperationRights.All);
    serviceConfig.SetEntitySetAccessRule("*", EntitySetRights.All);
    // *** I would like to set the following in my client code
    serviceConfig.SetEntitySetPageSize("Employees", 100);
    ...

Any advice will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:44:12+00:00Added an answer on May 26, 2026 at 11:44 pm

    Server paging is defined only on the server but you can use Take and Skip methods for client paging directly in your query.

    var data = (from e in context.Entities
                select e).Skip(200).Take(100);
    

    This example will skip 200 entities in result set and return entity 201 to 300. If you have 100 entities per page it is like selecting third page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an OData/WCF service using Visual Studio 2010 on Windows XP SP3
I have two enities in my wcf-data-service: Request and Server one Request can be
I have a WCF REST web service that is hosted via a service route
I really like OData (WCF Data Services). In past projects I have coded up
I am implementing a WCF Data service that implements the following method: http://debugmode.net/2010/06/13/introduction-to-wcf-data-service-and-odata/ I've
I have an OData WCF ADO.NET service created with Entity Framework using protocol version
Using WCF Data Services I am using a data model that contains entities with
I have a database schema (MySql) exposed as a data/OData service that is queried
Is there any metadata versioning support in OData protocol and its WCF Data Services
I am using WCF data services to 'query' for data models from my web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.