I'm using a linq statement like the one below to return a page. The page returns, the content field is populated in the DB, but the Content is null in the OData response. Any ideas?
var pages = (from p in cds.PageContents
where p.PublicationId == 20 && p.PageId == 1397
select p).ToList<SDLODataClient.SDLOData.PageContent>();
foreach (SDLODataClient.SDLOData.PageContent p in pages)
{
txtOutput.InnerHtml += p.Content;
}
This turned out to an issue with my cd_storage_conf.xml config file. Everything should have been pointed to the broker DB, but one item mapping was defined as follows:
<Item typeMapping="Page" cached="false" storageId="defaultFile"/
So the OData service was not looking in the right place.