Validation Application Block operationBehavior in Configuration

Topics: Validation Application Block
May 16, 2010 at 4:48 PM


In the documentation is an example on how to configure operationBehaviors in XML:

      <behavior name="operationBehavior">
        <validation enabled="true" ruleset="Bank2Rules"/>

As far as I know operation behaviors can only be added via attributes. Does anyone know how this is supposed to work? I would like to use this approach and remove the attributes from code and place them in the configuration.

Many thanks


May 17, 2010 at 10:03 AM

I'm currently looking into this.  I honestly really haven't tried this so I'm trying to look into the unit tests.


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.