Guest User

Untitled

a guest
Aug 17th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Override ValidationAttributes on a derived ViewModel
  2. public class Base
  3. {
  4. [Range(1, 100)]
  5. public virtual int SomeProperty { get; set; }
  6. }
  7.  
  8. public class Derived : Base
  9. {
  10. [Range(2, 100)]
  11. public override int SomeProperty { get; set; }
  12. }
Add Comment
Please, Sign In to add comment