EF5: Where are my DataAnnotations?
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 03 Apr 2012 |
View original | Bookmarked: 0 time(s)
EF 4.x: EF 4.1+ has a DataAnnotations namespace for the new EF related annotations. Most of them are related to database schema. EF 5 Not even a DataAnnotations namespace in here. Thats because the annotations got incorporated into .NET 4.5. .NET 4.5 A new namespace within System.ComponentModel.DataAnnotations: Schema All of the EF schema annotations are in here now. MaxLength and MinLength are in the DataAnnotations namespace. Added the following thanks to a suggestion from...