EF5, Data Annotations, Namespaces and Targeted .NET Versions

FIrst, be sure to read my post “When is EF5 not EF5” so you understand the basis for this post.

When you use EF5, regardless of targeting .NET 4 or .NET 4.5, you’ll find the special EF related data annotations (such as MaxLength and NotMapped) in the System.ComponentModel.DataAnnotations.Schema namespace.

In EF4, they were in System.ComponentModel.DataAnnotations namespace

 •  0 comments  •  flag
Share on Twitter
Published on July 23, 2012 08:35
No comments have been added yet.


Julia Lerman's Blog

Julia Lerman
Julia Lerman isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Julia Lerman's blog with rss.