ID

Uploaded

Status

Description

Work Items

Action

6649
by jhaegebaert
Sep 4, 2010
9:30 PM

Being evaluated

Hello Marc,

I added support for Castle Validator

- CastleAlgorithmValidator class, configured with IValidationAlgorithm
- AlgorithmValidationAttribute: instantiates the CastleAlgorithmValidator with the right algorithm. This acts as a base class for the different Validation attributes for Castle.

To ease future maintenance, I was thinking of a code generation-based strategy. I added a .tt file to the 'core' project, which generates and enum and factory class for all classes that implement IValidationAlgorithm. For example use, see the Castle attribute classes.

You may want to consider to split the core logic (algorithms) from the DataAnnotationsContrib project (e.g. called "BussinessValidation" or something. Validation attributes for the different validation frameworks can then be added as separate projects around this core project.

Download

View All
  • 1-1 of 1 Patches
    • Previous
    • 1
    • Next
    • Showing
    • All
    • Patches