Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Premium
Feed
Dashboard
Wallet
Achievements
Growth
Network
SharpGPT
Rewards
Register
Login
Using the [NotMapped] attribute to exclude Enum properties
WhatsApp
Akkiraju Ivaturi
Sep 03 2012
3.8
k
0
Resource
0
OData does not currently support enum types, and WCF Data Services throws an unclear exception when using the EF provider with a model that has an enum property. Mark the property with a [NotMapped] attribute to get around this limitation.
http://blogs.msdn.com/b/astoriateam/archive/2012/08/29/odata-101-using-the-notmapped-attribute-to-exclude-enum-properties.aspx
OData
.NET 4.5
Enum
assembly