none
Where to set restrictions for @Html.ValidationMessageFor with EF RRS feed

  • Question

  • Hello!

    Where and how can I add class restriction in case of EF?

    Such as:

    [Display(Name = "Confirm new password")]
    [Compare("NewPassword", ErrorMessage = "...")]
    public string ConfirmPassword { get; set; }

    Entity classes are not placed in the Models folder (different from Linq to SQL)

    I tried to create a public partial class with the same entity class name and properties inside without success.

    Thank you!

    Saturday, July 7, 2012 7:06 AM

Answers

All replies