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 9255011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:36:57+00:00 2026-06-18T11:36:57+00:00

We are using the OData Provider Toolkit to expose custom data as an OData

  • 0

We are using the OData Provider Toolkit to expose custom data as an OData feed. We have noticed that the author field is always unset:

<entry>
  <id>http://localhost/sample.svc/Entity</id>
  <title type="text"/>
  <updated>2013-01-30T01:02:28Z</updated>
  <author>
    <name/>
  </author>

Is there a way to set the author programmatically using this toolkit? We haven’t been able to find a way to access the SyndicationItems of the associated Atom feed that generates the result.

  • 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-06-18T11:36:58+00:00Added an answer on June 18, 2026 at 11:36 am

    Depending on which version of WCF Data Services (ie System.Data.Services.DataService) you are using with that toolkit, you have two options here:

    1) Use so-called ‘Entity Property Mapping’ to tell the system to put a specific property’s value into the Author field. This functionality has been present since .NET 4.0 (and available through an update to 3.5SP1 as well). To turn this on, look into the ResourceType.AddEntityPropertyMappingAttribute API (http://msdn.microsoft.com/en-us/library/system.data.services.providers.resourcetype.addentitypropertymappingattribute.aspx).

    2) Customize the instances of ODataEntry being written out using the recently added support for wrapping the ODataWriter being used by the data service. This is only available in versions 5.1 and later, which can be found at NuGet (http://nuget.org/packages/Microsoft.Data.Services/). To wrap the writer, you will need to hook up to the DataService.CreateODataWriter delegate property. You can see an example of how to use this here: http://odatasamples.codeplex.com/SourceControl/changeset/view/be77d3cacb2c#WcfDataServices101/WcfDataServices101.CustomizedEntityLinks/CustomizedEntityLinksService.svc.cs. Once you are in the WriteStart method, you can use the ODataEntry.Atom() extension method to get access to the atom-specific metadata like authors, contributors, etc.

    Hope that helps, I can provide more exact code examples as needed.

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

Sidebar

Related Questions

I am using WCF Data Services (OData) to expose some data that is a
I have a memory leak problem using OData where data retrieved from the OData
I have a WFC Data Service using OData v3. Following REST specification I created
I've created an OData endpoint (using entity framework, WCF data service) and added a
I have an ASP.NET Web Application project that I am using to host a
I'm brand new to OData, so please bear with me. Assuming that I'm using
I have a WCF data service hosted on a IIS server; I am using
I am creating a WCF Data Service using the WCF Data Services Toolkit and
I have just started evaluating whether or not I should be using OData influenced
I have a WP7 app using the ODATA v2 library with DataServiceState class and

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.