Remove Validator selectively?

Posts   
 
    
edalzell
User
Posts: 44
Joined: 27-May-2008
# Posted on: 19-Dec-2008 22:39:29   

I have a situation where the validators are getting called and I would rather they didn't. I use DI to set up the validation.

Under certain circumstances, I would like not have the validators called.

I am considering creating an empty validator and using Dependency Injection Scopes to insert the blank validator. I plan to use an empty Validator on EntityBase2 so I can override ALL of my validators (as I want to turn all of them off).

Is this the best way to do this?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 20-Dec-2008 03:03:07   

Hi there,

I would opt for that option as well. Using Dependency Injection scopes is the best option in your scenario.

David Elizondo | LLBLGen Support Team