Step-by-Step into the cloud

a blog of Dirk Eisenberg (>)
posts - 82, comments - 16, trackbacks - 17

My Links

News

Article Categories

Archives

Post Categories

Image Galleries

Blogs

Projects

OData

Everything about my work with the OData protocol and WCF Data Services
Set the right names of the id attribute in the model classes of an OData service
Just a second ago I tried to update my WCF data service. I wanted to expose a collection of the following class (This model is part of a hand made POCO set which is mapped to an E/F conceptional model): class Car { public int MyID { get; set; } public string CarName { get; set; } } I got a service exception of course and the exception message said something about that the element type of my cars collection is not an entity type. To solve this problem you have 2 options: Rename your MyID property...

Posted On Monday, January 10, 2011 1:10 AM | Feedback (0) | Filed Under [ .NET Coding Coding OData ]

Powered by: