Adding Multiple Configuration Files For Validation

Topics: Enterprise Library Core, General discussion, Validation Application Block
Jul 1, 2010 at 8:13 AM

Hey Guys,

We are using Validation Application Block for one of the our project, We need to separate out the files based on entity to different configuration file. Say for example we have 10 entities class and we want to define 10 config file containing the rules pertaining to each entity in conjunction to this we want to use PropertyProxyValidator with that (For Asp.Net integration). I checked the documentation i don't find anything like that. Is there any extensibility points that we can use to achieve this?

Amit

 

Jul 1, 2010 at 8:26 AM

You would need to modify the source code if you want the propertyproxyvalidator to be able to support specifying a different configuration file. 

However, would you consider combining the different validation files as a way around this?  If yes, you can check out this thread which also refers to this blog.

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com

 

Jul 1, 2010 at 10:37 AM

Hey Sarah,

Thanks a lot, that did the trick :).

Amit