Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Override ValidationAttributes on a derived ViewModel
- public class Base
- {
- [Range(1, 100)]
- public virtual int SomeProperty { get; set; }
- }
- public class Derived : Base
- {
- [Range(2, 100)]
- public override int SomeProperty { get; set; }
- }
Add Comment
Please, Sign In to add comment