Entity Framework 6 Reusing Data Annotations
I've looked for a while for a definitive solution to this but have yet to come to a conclusion. I would like to specify data annotations just once on the data model class and have these be seen by the UI from a view model class without specifying them again. To illustrate my point suppose I have a UserAccount Class as such... public class UserAccount { [Display(Name = "Username", Prompt = "Login As"), Required()] string UserName { get; set; } [Display(Name = "Password", Prompt = "Password"), Required(), DataType(DataType.Password), StringLength(255, MinimumLength = 7, ErrorMessage = "The