Questions tagged [validation-application-bl]

The Enterprise Library Validation Application Block provides a library of classes, called validators, that supplies the code for validating .NET Framework data types. For example, one validator checks for null strings and another validator checks that a number falls within a specified range.

48 questions
0
votes
1 answer

Validation Application Block - Validation attributes multiple error order

I'm playing with EL Validation Application Block. When a validation is made using attributes, the validation order is not respected. For example: public class Boat { [Display(Name="License Plate")] [RequiredStringValidator] …
JPP
  • 360
  • 6
  • 22
0
votes
1 answer

Enterprise Validation Block different rulsets for parent child classes

Validation on property of child class does not work when I have 2 different rulesets for The parent and child. This is the class code: Mytype is the parent and Person is the child [HasSelfValidation] public class MyType { …
0
votes
2 answers

Validation Application Block - How to use validation metada class

I'm using VAB to validate some classes with attributes and I'm using a metadata class to share the same validation among different classes. When i try to validate an object in the controller (btw i'm using asp.net mvc) the ValidationResults does not…
1 2 3
4