TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Using the [NotMapped] attribute to exclude Enum properties
Akkiraju Ivaturi
Sep 03 2012
Resource
0
0
5.4
k
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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