Databases Reference
In-Depth Information
that they can run repeatedly and independently of each other. TransactionScope is the
simplest way to isolate integration tests that access the database.
A number of built-in validation attributes is included in the framework out of the box,
including attributes for performing required, string length, range, enum, and regular
expression checks. Additional validation attributes can be implemented by inheriting from
the ValidationAttribute class.
Imperative validation logic can be implemented by placing CustomValidationAttribute
on individual properties or entire classes and implementing special validation methods
that return ValidationResult objects. Classes can also implement the
IValidatableObject interface to validate multiple rules and return multiple validation
results.
Search WWH ::




Custom Search