<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>VAB Forum Rss Feed</title><link>http://www.codeplex.com/Project/ListForums.aspx?ProjectName=VAB</link><description>VAB Forum Rss Description</description><item><title>New Post: Self Validator and Inheritance</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=69731</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;acute;m have an object B that inherits from A.&lt;/p&gt;
&lt;p&gt;I have some Self Validations in A. Should they be (implicitly) called when object object B is beeing validated?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you!&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>jcr</author><pubDate>Tue, 22 Sep 2009 15:33:31 GMT</pubDate><guid isPermaLink="false">New Post: Self Validator and Inheritance 20090922033331P</guid></item><item><title>New Post: WCF Parameter Validation</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=65242</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I've started looking at this for the first time and am having problems getting it working.&amp;nbsp; I have a service setup correctly as far as I can tell from all the examples / MSDN docs I can find.&lt;/p&gt;
&lt;p&gt;The service is hosted in IIS, I've tried using config file configuration, attribute configuration and both, it just never seems to through a ValidationFault.&amp;nbsp; My operation looks like:&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;        [OperationContract]
        [FaultContract(&lt;span style="color:Blue"&gt;typeof&lt;/span&gt;(SecurityFaultException), Action=Constants.FaultAction)]
        [FaultContract(&lt;span style="color:Blue"&gt;typeof&lt;/span&gt;(ValidationFault))]
        &lt;span style="color:Blue"&gt;bool&lt;/span&gt; Register([NotNullValidator] &lt;span style="color:Blue"&gt;string&lt;/span&gt; userName, &lt;span style="color:Blue"&gt;string&lt;/span&gt; password, &lt;span style="color:Blue"&gt;string&lt;/span&gt; email);
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;Whilst the service looks like:&lt;/p&gt;
&lt;p&gt;[ValidationBehavior]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public interface IAccountService&lt;/p&gt;
&lt;p&gt;As far as I can tell this should work.&amp;nbsp; The configuration snippets I've tried are as per this page:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc309334.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc309334.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The only change to these configuration snippets I have made is to update the version number to match Enterprise Library 4.0.0.0 in the behaviour extensions declaration.&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;/div&gt;</description><author>findjammer</author><pubDate>Tue, 11 Aug 2009 21:20:45 GMT</pubDate><guid isPermaLink="false">New Post: WCF Parameter Validation 20090811092045P</guid></item><item><title>New Post: ValueAccessValidator Class</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=62617</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Why does not ValueAccessValidator Class&amp;nbsp; have ValueAccess and&amp;nbsp; ValueValidator public properties?&lt;/p&gt;&lt;/div&gt;</description><author>baris</author><pubDate>Thu, 16 Jul 2009 12:28:25 GMT</pubDate><guid isPermaLink="false">New Post: ValueAccessValidator Class 20090716122825P</guid></item><item><title>New Post: Problem with Range Validator</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=55892</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Below worked instead:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;StringLengthValidator&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</description><author>sandeepkashaboina</author><pubDate>Mon, 11 May 2009 09:51:28 GMT</pubDate><guid isPermaLink="false">New Post: Problem with Range Validator 20090511095128A</guid></item><item><title>New Post: Problem with Range Validator</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=55892</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;My property is declared as:&lt;/p&gt;
&lt;p&gt;Private _FirstName As String&lt;br&gt;&amp;lt;RangeValidator(1, RangeBoundaryType.Inclusive, 255, RangeBoundaryType.Exclusive, Negated:=False, MessageTemplate:=&amp;quot;Please provide First Name.&amp;quot;)&amp;gt; _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Property FirstName() As String&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return (_FirstName)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set(ByVal Value As String)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _FirstName = Value&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Property&lt;/p&gt;
&lt;p&gt;So, when trying to validate the class, throwing an exception &amp;quot;&lt;strong&gt;Object must be of type Int32.&lt;/strong&gt;&amp;quot;&lt;br&gt;What would be the problem??&lt;/p&gt;
&lt;p&gt;&amp;lt;Stack_Trace&amp;gt;&amp;nbsp;&amp;nbsp; at System.Int32.CompareTo(Object value)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeChecker`1.IsInRange(T target)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.RangeValidator`1.DoValidate(T objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validator`1.DoValidate(Object objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.AndCompositeValidator.DoValidate(Object objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.ValueAccessValidator.DoValidate(Object objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.AndCompositeValidator.DoValidate(Object objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.AndCompositeValidator.DoValidate(Object objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validators.GenericValidatorWrapper`1.DoValidate(T objectToValidate, Object currentTarget, String key, ValidationResults validationResults)&lt;br&gt;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Validation.Validation.Validate[T](T target)&lt;br&gt;&amp;nbsp;&amp;nbsp; at CustomerAlerter.InsertCustomer(String URL, CustomerInfo objCustomer) in c:\inetpub\wwwroot\A1CRM\App_Code\CustomerAlerter.vb:line 554&amp;lt;/Stack_Trace&amp;gt;&lt;/p&gt;&lt;/div&gt;</description><author>sandeepkashaboina</author><pubDate>Mon, 11 May 2009 07:48:19 GMT</pubDate><guid isPermaLink="false">New Post: Problem with Range Validator 20090511074819A</guid></item><item><title>New Post: Business Object validation - with Validation Application Block</title><link>http://vab.codeplex.com/Thread/View.aspx?ThreadId=13091</link><description>&lt;div style="line-height: normal;"&gt;&lt;strong&gt;Feedback on the use of VAB and storing the settings in the database:&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
    &lt;li&gt;Firstly, VAB settings can be saved in the database using a SqlConfigurationSource. You can save your VAB settings and other enterprise library
    settings that would by default go in a config file into the database relatively easily. We went with solution B (see case study
    above) and found that saving our Validation Application Block settings
    in the database works fine. The downside is that it leaves the settings 'locked away' in
    the database in an ntext field - fine for validation purposes but
    rather unobtainable for general users of the application (therefore
    the settings are only really accessible to developers via the Enterprise
    Library Configuration Editor) and it does not really allow you to
    change the settings at runtime. You could write an xml editor to read or write values into the settings database used by VAB, but we did not have time to do this. If your validation rules will remain quite static then this approach could work. If your validation rules will change from time to time and from object to object then this approach is probably not flexible enough.&lt;br&gt;
    &lt;br&gt;
    For more info
    on saving enterprise library settings in the database research
    'SqlConfigurationSource'. Here is a good discussion about it: &lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=17125"&gt;jorgas on SqlConfigurationSource.&lt;br&gt;
    &lt;br&gt;
    &lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;Secondly, VAB does allow you to validate Business Objects and it works well for defined objects (i.e. once you've compiled the project/assembly that contains your business objects you can load the assembly into the VAB configuration interface and it will find your classes/objects and allow you to set rules per object). The only constraint is that if your business objects change you may have to reload the assembly into the Configuration tool and redefine the rules that have been set up.&lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=17125"&gt;&lt;br&gt;
    &lt;br&gt;
    &lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;And finally, Enterprise Library contains an editor that works a lot better than saving settings in a configuration file (at least for hands-on developers). The editor provides a visual representation of all the config sections and settings used for enterprise library. The enterprise library settings tend to grow the more you use enterprise libraries. We found that the files become unmanageable, especially if you use your main web.config or app.config file to store EL settings in. Try to either store the settings in the database, or use a &lt;a href="http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx"&gt;file configuration data source&lt;/a&gt;.&lt;br&gt;
    &lt;br&gt;
    For more info on using the Enterprise Library Configuration tool see: &lt;a href="http://davidhayden.com/blog/dave/archive/2006/12/22/EnterpriseLibrary3ConfigurationEditor.aspx"&gt;david hayden's blog&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;br&gt;
Happy coding.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;</description><author>eug</author><pubDate>Wed, 06 May 2009 13:13:10 GMT</pubDate><guid isPermaLink="false">New Post: Business Object validation - with Validation Application Block 20090506011310P</guid></item><item><title>New Post: Cannot convert method group 'CreateValidatorFromAttributes' to non-delegate type 'Microsoft.Practices.EnterpriseLibrary.Validation.Validator&lt;T&gt;</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=43408</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I am trying to add a base class to my business objects so that they can be validated before the objects are saved to the database. I found this great sample on David Haydens website and have been trying to implement it myself. Here is the error message I am getting - Cannot convert method group 'CreateValidatorFromAttributes' to non-delegate type 'Microsoft.Practices.EnterpriseLibrary.Validation.Validator&amp;lt;T&amp;gt;&lt;br&gt;
&lt;br&gt;
Here is my code:&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:13px;color:#0000ff"&gt;public&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;abstract&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;class&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;DomainObject&lt;/span&gt;&lt;span style="font-size:13px"&gt;&amp;lt;T&amp;gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;where&lt;/span&gt;&lt;span style="font-size:13px"&gt; T : &lt;/span&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;class&lt;/span&gt;&lt;span style="font-size:13px"&gt;{
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;protected&lt;/span&gt;&lt;span style="font-size:13px"&gt; &lt;/span&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;Validator&lt;/span&gt;&lt;span style="font-size:13px"&gt;&amp;lt;T&amp;gt; validationService;&lt;/span&gt;&lt;span style="font-size:13px"&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#0000ff"&gt;public&lt;/span&gt;&lt;span style="font-size:13px"&gt; DomainObject(){
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;validationService = &lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:13px;color:#2b91af"&gt;ValidationFactory&lt;/span&gt;&lt;span style="font-size:13px"&gt;.CreateValidatorFromAttributes&amp;lt;T&amp;gt;;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;}&lt;br&gt;
&lt;br&gt;
What am I doing wrong. I am using Ent Lib 4.1 and attributes on my properties in my business objects. Can somebody please help me, thanks, VAB newbie&lt;/p&gt;
&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>newbie06</author><pubDate>Sun, 04 Jan 2009 20:22:01 GMT</pubDate><guid isPermaLink="false">New Post: Cannot convert method group 'CreateValidatorFromAttributes' to non-delegate type 'Microsoft.Practices.EnterpriseLibrary.Validation.Validator&lt;T&gt; 20090104082201P</guid></item><item><title>New Post: Validation Application Block with ruleset in Database</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=40094</link><description>&lt;div style="line-height: normal;"&gt; Am creating a application where i need to handle different ruleset. I want keep the configuration in Database and i want to define the rules based on the user.&lt;br&gt;
&lt;br&gt;
Can any one post your comments?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Peter.
&lt;/div&gt;</description><author>peteryengaran</author><pubDate>Mon, 17 Nov 2008 11:53:45 GMT</pubDate><guid isPermaLink="false">New Post: Validation Application Block with ruleset in Database 20081117115345A</guid></item><item><title>New Post: Object Property Validation (IConfigurationSource and IValidationIntegrationProxy)</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=36708</link><description>&lt;div style="line-height: normal;"&gt;&lt;p style="margin:0in 0in 12pt"&gt;&lt;b&gt;&lt;span style="font-family:Calibri"&gt;Overview/Problem&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 12pt"&gt;&lt;span style="font-family:Calibri"&gt;We would like to use “dynamic rulesets” in our validation.&amp;nbsp; Currently, we do this by setting the ValidationSettings in an IConfigurationSource and pass this object into ValidationFactory.CreateValidator() for object validation.&amp;nbsp; However, I have not found a way to pass an IConfigurationSource into IValidationIntegrationProxy or ValidationIntegrationHelper methods.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 12pt"&gt;&lt;span style="font-family:Calibri"&gt;Is there a way to pass an IConfigurationSource to IValidationIntegrationProxy or ValidationIntegrationHelper? &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 12pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;Or is there a way I can create a validator from ValidatorData in an IConfigurationSource?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 12pt"&gt;&lt;span style="font-family:Calibri"&gt;Or is there another way to dynamically changing the “validation” section (ValidationSettings) at runtime?&amp;nbsp; My hope is that this option does not require writing directly to app.config.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 12pt"&gt;&lt;span style="font-family:Calibri"&gt;&lt;b&gt;Details&lt;/b&gt;&lt;br&gt;
&lt;br&gt;
First, let me give a brief background of what we have so far before building up to property validation.&lt;br&gt;
&lt;br&gt;
1.) We are using the Validation Application Block found in Enterprise Library 4&lt;br&gt;
2.) Our validation rulesets are not stored in Attributes or in&amp;nbsp;an app.config file&lt;br&gt;
3.) Validation rules are stored in a MS SQL Server renationalized database, not as&amp;nbsp;XML,&amp;nbsp;which is used to construct a &amp;quot;validation&amp;quot; section, ValidationSettings, in an IConfigurationSource&lt;br&gt;
&lt;br&gt;
OK, so hopefully I stated all this correctly and it makes sense.&amp;nbsp; To give you&amp;nbsp;the high level usage it would be like:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;...&lt;br&gt;
Patient patient = new Patient();&lt;br&gt;
ValidationConfigurationSource&amp;nbsp;vcs = new&amp;nbsp;ValidationConfigurationSource();&lt;br&gt;
&lt;br&gt;
// do some code to load vcs's&amp;nbsp;&amp;quot;validation&amp;quot; section, which is a&amp;nbsp;ValdiationSettings&lt;br&gt;
Validator val = ValdationFactory.CreateValidator&amp;lt;Patient&amp;gt;(&amp;quot;RuleSet1&amp;quot;, vcs);&lt;br&gt;
ValidationRulesets vrs = val.Validate(patient);&lt;br&gt;
&lt;br&gt;
This works perfectly to validate an &amp;quot;object&amp;quot; this way.&amp;nbsp; However, sometimes we would like to validate just a single Property on an Object.&amp;nbsp; The only way I have seen this done in the past is by using an&amp;nbsp;IValidationIntegrationProxy.&amp;nbsp; However, IValidationIntegrationProxy will validate against either the Attributes or app.config, there is NO WAY to inject an IConfigurationSource of my own (like I did with ValidationFactory.CreateValidator).&amp;nbsp; Is that correct?&amp;nbsp; Does anyone know of a way to interject an IConfigurationSource into either IValidationIntegrationSource or ValidationIntegrationHelper?&amp;nbsp; Here is some sample code I wrote:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Patient patient = new Patient();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidationIntegrationProxy myProx = new ValidationIntegrationProxy();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myProx.ProvidesCustomValueConversion = false;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myProx.SpecificationSource = ValidationSpecificationSource.Attributes;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myProx.Ruleset = &amp;quot;Tester&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myProx.ValidatedType = patient.GetType();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myProx.ValidatedPropertyName = &amp;quot;Test&amp;quot;;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidationIntegrationHelper vih = new ValidationIntegrationHelper(myProx);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Validator propertyValidator = vih.GetValidator();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ValidationResults vrs = propertyValidator.Validate(patient);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;ValidationIntegrationHelper.GetValidator() does not take IConfigurationSource as a parameter.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;I have also tried to construct a validator from a ValidatorData stored in the “validation” section in the IConfigurationSource.&amp;nbsp; However, this doesn’t work very well at all.&amp;nbsp; In order to do this you would need to call IValidatorDescriptor.CreateValidator(), which is inherited an implemented by ValidatorData but the IValidatorDescriptor interface is “internal” to VAB and I cannot reach it from my code.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;So my questions are:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;1.)&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;Is there any way to interject an IConfigurationSource into IValidationIntegrationProxy or ValidationIntegrationHelper?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;2.)&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;Is there a way to construct valitors by hand if you have access to the “validation” section in an IConfigurationSource?&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;Mikel Finch&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>MikelFinch</author><pubDate>Tue, 30 Sep 2008 02:02:37 GMT</pubDate><guid isPermaLink="false">New Post: Object Property Validation (IConfigurationSource and IValidationIntegrationProxy) 20080930020237A</guid></item><item><title>New Post: WCF parameter validation</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=36155</link><description>&lt;div style="line-height: normal;"&gt;If I have a WCF interface as follows&lt;br&gt;
&lt;br&gt;
[DataContract]&lt;br&gt;
class Parameter&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [DataMember]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [RegexValidator]&lt;br&gt;
&amp;nbsp; &amp;nbsp; public string Name {get; set;}&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [DataMember]&lt;br&gt;
&amp;nbsp; &amp;nbsp; public string Name {get; set;}&lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
[ServiceContract]&lt;br&gt;
interface ISomething&lt;br&gt;
{&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [OperationContract]&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; [FaultContract(typeof(ValidationFault))]&lt;br&gt;
&amp;nbsp; &amp;nbsp; public void DoSomething(Parameter p);&lt;br&gt;
}&lt;br&gt;
&lt;br&gt;
I want to be able to pass null as parameter p, but the I keep getting a ValidationFault. I've tried setting [IgnoreNulls] on the parameter but it has no effect.&lt;br&gt;
&lt;br&gt;
any ideas?&lt;br&gt;
&lt;/div&gt;</description><author>ColinGr</author><pubDate>Mon, 22 Sep 2008 05:31:40 GMT</pubDate><guid isPermaLink="false">New Post: WCF parameter validation 20080922053140A</guid></item><item><title>New Post: VAB ignores Inheritance when configuring rules in config file </title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=14191</link><description>&lt;div style="line-height: normal;"&gt;Hi Shabab!&lt;br&gt;
&lt;br&gt;
I've got the same problem in my WinForms App. I'm currently opening an issue for that (man, codeplex is so slow when I want to sign in or post). You can go to the issue tracker and vote for it.&lt;br&gt;
&lt;/div&gt;</description><author>jackdanies</author><pubDate>Wed, 10 Sep 2008 07:46:57 GMT</pubDate><guid isPermaLink="false">New Post: VAB ignores Inheritance when configuring rules in config file  20080910074657A</guid></item><item><title>New Post: Validate duplicate business key </title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=34173</link><description>&lt;div style="line-height: normal;"&gt;&lt;p style="margin:0in 0in 0pt"&gt;&lt;span style="font-family:Calibri"&gt;It is first time to use validation block and I succeeded to configure it. Mainly I need validation block for validating duplicate business key, for example: I need to validate username not exist in my database before . so I need the best way to do that considering the following:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;-&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;Asp.net application .net 3.5&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;-&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;Business objects are LINQ classes ( I prefer these classes to be clean from any extra methods or attributes)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;-&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;I am using xml rule set&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 0pt 0.5in"&gt;&lt;span&gt;&lt;span style="font-family:Calibri"&gt;-&lt;/span&gt;&lt;span style="font:7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Calibri"&gt;For asp.net integration I am use PropertyProxyValidator&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description><author>AhmedSoliman</author><pubDate>Sun, 24 Aug 2008 18:31:31 GMT</pubDate><guid isPermaLink="false">New Post: Validate duplicate business key  20080824063131P</guid></item><item><title>New Post: ValueConvert problematic</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=10858</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;A good question. I have the same problem, but with an 'Int32' property.&lt;/p&gt;
&lt;p&gt;I want it to be between 0&amp;nbsp;&amp;nbsp;and 100000 or empty. And what i want is a error message like:&lt;/p&gt;
&lt;p&gt;&amp;quot;The property should be an integer between 0 and 100000&amp;quot;, &lt;/p&gt;
&lt;p&gt;whatever they enter, for example:&lt;/p&gt;
&lt;p&gt;&amp;quot;wkje&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;1.2&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;230403948574734&amp;quot;&lt;/p&gt;
&lt;p&gt;&amp;quot;-2343&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>Biergarten</author><pubDate>Thu, 21 Aug 2008 14:52:48 GMT</pubDate><guid isPermaLink="false">New Post: ValueConvert problematic 20080821025248P</guid></item><item><title>NEW POST: VAB and inherited classes</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=20545</link><description>&lt;div class="wikidoc"&gt;
Validation.Validate(p) uses GENERICS to build the validator (this is similar to calling Validation.Validate&amp;lt;Person&amp;gt;(p)).&lt;br /&gt; &lt;br /&gt;The solution is to use REFLECTION to create the validator, like this:&lt;br /&gt;Istead of:&lt;br /&gt;ValidationResults res = Validation.Validate(p);&lt;br /&gt;Use this:&lt;br /&gt;Validator entityValidator = ValidationFactory.CreateValidator(this.GetType());&lt;br /&gt;ValidationResults res = entityValidator.Validate(p);&lt;br /&gt;
&lt;/div&gt;</description><author>jacdevos</author><pubDate>Wed, 12 Mar 2008 14:39:03 GMT</pubDate><guid isPermaLink="false">NEW POST: VAB and inherited classes 20080312023903P</guid></item><item><title>NEW POST: Validation Block Evaluation Questions</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=21048</link><description>&lt;div class="wikidoc"&gt;
Hey Everyone,&lt;br /&gt; &lt;br /&gt;I have some questions about the Validation Block.&lt;br /&gt; &lt;br /&gt;*I read there are some “quirks” with Enterprise Library 3.1 Validation Block.  What are they?&lt;br /&gt; &lt;br /&gt;*I am evaluating the v3.1 Validation Block for a WCF project based on .NET 3.5.  Has anyone used it with the .NET 3.5 Framework?  Have you had any issues?  Do you see the lack of integration with 2008 as a major problem?&lt;br /&gt; &lt;br /&gt;*Is a version that targets .NET 3.5/VS 2008 schedule for release?  When?&lt;br /&gt; &lt;br /&gt;*Does the Validation Block provide a mechanism to code the validation failure?  For example, if a certain validation error should be associated with a particular control in the client, can I code that error with “0001” or GUID, etc.?  Perhaps I would use the Key or the Tag property in the ValidationDetail?&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Thanks very much!&lt;br /&gt; &lt;br /&gt;Noel&lt;br /&gt;
&lt;/div&gt;</description><author>noeleee</author><pubDate>Fri, 25 Jan 2008 19:58:34 GMT</pubDate><guid isPermaLink="false">NEW POST: Validation Block Evaluation Questions 20080125075834P</guid></item><item><title>NEW POST: VAB and inherited classes</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=20545</link><description>&lt;div class="wikidoc"&gt;
For example I use following classes:&lt;br /&gt; &lt;br /&gt;public class Person&lt;br /&gt;	{&lt;br /&gt;		private string _Name;&lt;br /&gt; &lt;br /&gt;		public string Name&lt;br /&gt;		{&lt;br /&gt;			get { return _Name; }&lt;br /&gt;			set { _Name = value; }&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt; &lt;br /&gt;	public class Employee : Person&lt;br /&gt;	{&lt;br /&gt;		private string _Department;&lt;br /&gt; &lt;br /&gt;		&lt;a href="http://www.codeplex.com/VAB/Wiki/View.aspx?title=StringLengthValidator%281%2c99%29"&gt;StringLengthValidator(1,99)&lt;/a&gt;&lt;br /&gt;		public string Department&lt;br /&gt;		{&lt;br /&gt;			get { return _Department; }&lt;br /&gt;			set { _Department = value; }&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt; &lt;br /&gt;And I want to validate a Person&lt;br /&gt; &lt;br /&gt;Employee e = new Employee();&lt;br /&gt;e.Name = &amp;quot;John&amp;quot;;&lt;br /&gt;e.Department = &amp;quot;&amp;quot;;&lt;br /&gt;Person p = e;		&lt;br /&gt;ValidationResults res = Validation.Validate(p);&lt;br /&gt; &lt;br /&gt;the result is valid although the Department is empty.&lt;br /&gt; &lt;br /&gt;How can I pass a base class and validate a possible sub-class?&lt;br /&gt;
&lt;/div&gt;</description><author>phrozen</author><pubDate>Wed, 16 Jan 2008 10:01:51 GMT</pubDate><guid isPermaLink="false">NEW POST: VAB and inherited classes 20080116100151A</guid></item><item><title>NEW POST: Is it possible to 'change' the location of the XML Rule sets?</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=19648</link><description>&lt;div class="wikidoc"&gt;
Hi &amp;amp; Happy Holidays&lt;br /&gt; &lt;br /&gt;We have a Smart Client business app, and, would like to keep the validation rules on the server side of the SOA.&lt;br /&gt; &lt;br /&gt;However, as a performance benefit (i.e. save an unnecessary server round trip), and user experience benefit, the &amp;quot;on the fly&amp;quot; validation capability of VAB / Validation Provider / ErrorProvider on the UI works very well, and we would like to get the benefit of this as well.&lt;br /&gt; &lt;br /&gt;Although we can duplicate the rule configs on both Client and Server, it would be 'nicer' if we can keep to the one common set, i.e. we would like to keep our entity validation rules in our Server app.config, but would like to expose a rules 'service' allowing clients to retrieve these rules (and cache them) for the purpose of 'early / on the fly' validation.&lt;br /&gt; &lt;br /&gt;Which brings the question : Is there a simple way to dynamically set the Validation &amp;quot;rule&amp;quot; store (on the client) to a location other than app.config, or will we need to hack the file?&lt;br /&gt; &lt;br /&gt;This is probably a common scenario with a Smart Client / VAB combination?&lt;br /&gt; &lt;br /&gt;Thanks in Advance&lt;br /&gt; &lt;br /&gt;Regards&lt;br /&gt; &lt;br /&gt;Stuart&lt;br /&gt;
&lt;/div&gt;</description><author>nonnb</author><pubDate>Thu, 27 Dec 2007 08:04:45 GMT</pubDate><guid isPermaLink="false">NEW POST: Is it possible to 'change' the location of the XML Rule sets? 20071227080445A</guid></item><item><title>NEW POST: Validating Arguments To Constructors</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=17519</link><description>&lt;div class="wikidoc"&gt;
I'd like to be able to use your style of validation for arguments to constructors. Is this possible and even better is there any way I can find out whether it is possible to construct and object and if not why not, I'm thinking of something like this:&lt;br /&gt; &lt;br /&gt;   Title title = ...;&lt;br /&gt;   string firstName = ...;&lt;br /&gt; &lt;br /&gt;   ValidationResults r = Validation.ValidateConstruction&amp;lt;typeof(CustomerName)&amp;gt;(title, firstName);&lt;br /&gt; &lt;br /&gt;This method would look at the attributes applied to the constructor and if it finds any would evaluate them against the passed in data (with the order of the arguments to the ValidateConstruction method being in the same order as the arguments to the constructor). Thus if we had an attribute on the constructor that required the first argument to be non-null then we'd get a validation-result failure if &amp;quot;title&amp;quot; was null.&lt;br /&gt; &lt;br /&gt;Is this possible or do you think it would be easy for me to add?&lt;br /&gt;
&lt;/div&gt;</description><author>colin_jack</author><pubDate>Wed, 07 Nov 2007 21:25:06 GMT</pubDate><guid isPermaLink="false">NEW POST: Validating Arguments To Constructors 20071107092506P</guid></item><item><title>NEW POST: VAB ignores Inheritance when configuring rules in config file </title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=14191</link><description>&lt;div class="wikidoc"&gt;
I have an interesting situation and am getting confusing results. &lt;br /&gt; &lt;br /&gt;&lt;b&gt;Scenario&lt;/b&gt;:&lt;br /&gt;I have a class hierarchy with base class and several sub-classes. I would like to apply validation rules at the base class for common fields and have sub-classes inherit those rules. I can do this by applying attributes to the fields in base class. However, this &lt;b&gt;does not&lt;/b&gt; work when I apply the rules on the base type using the web.config and not the attributes. VAB does not respect inheritance when reading rules from the config file. &lt;br /&gt; &lt;br /&gt;Is this &amp;quot;working as desgined&amp;quot;? Is there any workaround for this other then just hard coding my validation rules via attributes in the base class?&lt;br /&gt; &lt;br /&gt;Thanks,&lt;br /&gt; &lt;br /&gt;--Shabab&lt;br /&gt;
&lt;/div&gt;</description><author>Shababhussain</author><pubDate>Wed, 22 Aug 2007 19:12:41 GMT</pubDate><guid isPermaLink="false">NEW POST: VAB ignores Inheritance when configuring rules in config file  20070822071241P</guid></item><item><title>NEW POST: Business Object validation - with Validation Application Block</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=13091</link><description>&lt;div class="wikidoc"&gt;
 &lt;br /&gt;My question: &lt;i&gt;the validation application block (VAB) is &lt;b&gt;not&lt;/b&gt; a perfect match for our requirements but can be amended to fit, so is it the right solution to go with?&lt;/i&gt;&lt;br /&gt; &lt;br /&gt;&lt;ul&gt;
&lt;li&gt;VAB benefits: UI validation, business object validation, central place to store rules, etc.&lt;/li&gt;&lt;li&gt;negatives: rules stored in xml, rules cant be edited at runtime.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;&lt;b&gt;My scenario in nutshell&lt;/b&gt; : I have quite a few Customer business objects. Each customer has a similar (yet different) set of rules to be validated against, but the rules change dynamically depending on which the month of the year it is, or on the Customer's countryID, for instance. We will need to create many different rulesets (one for each scenario), for example CustomerA is subject to Ruleset1,2 and 3, but if CustomerA had a different countryID then RuleSets1 and 4 apply instead. We also want the customer-admin to be able to log into an admin section on our web application and manage their rules (or some of the rules), i.e. enable/disable rules and change the Range values of a range validator for example. In the past we have used customer specific xml files to contain certain config settings (similar to xml rules), but managing the file configuration turned into a nightmare and is now strongly opposed where I work. &lt;br /&gt; &lt;br /&gt;&lt;b&gt;My proposed solution (A)&lt;/b&gt; :  use the Validation block, with this many rules we can really benefit from the features of VAB. The problem is that in order to satisfy all the different rules we will end up with loads of different rulesets and configuration files (which is not what we want) and changing the rules will require a developer with xml knowledge or access to the Enterprise Library Configuration tool - which is not ideal when we want the customer to be able to manage rules. (we could perhaps make this work by writing some code to manage and edit the customer xml files?).&lt;br /&gt; &lt;br /&gt;&lt;b&gt;My proposed solution (B)&lt;/b&gt; : use the Validation block along with SqlConfiguration to store the rules in a sql db, getting away from config files in the file system. The problem here is that the sqlconfiguration simply dumps a long serialised xml string into a single database column (ntext field type) with no normalisation at all. With large rulesets this is perhaps even worse than managing xml files? Provided that the ntext field can handle all our rules this solution might work, we could then extract the rules-xml from the DB and create some code and an interface in the web application for editing the rules.&lt;br /&gt; &lt;br /&gt;&lt;b&gt;Poposed Solution (C)&lt;/b&gt; : take solution B and amend the sqlconfiguration stored procedures to store and retrieve the rules in a better way. The procs will have to take different sets of parameters and we will have to create our own rules and constraints tables and write some code to insert and retrieve the rule settings, and to include these rules in validation. This might end up being a lot of work. Well it’s not that much work but we will probably end up writing our own validation engine. &lt;br /&gt; &lt;br /&gt;Solution B will probably work best, using Enterprise Library Configuration tool initially to set up the rulesets, storing the rules in the database; and then for editing the rules we create a section in the web application that will read (deserialise) the xml rulesets from the database and allow authenticated customers to edit and save the rules back into the database.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;Has anyone used the validation block to such extent? Please reply to let us know the recommended approach.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt; &lt;br /&gt;
&lt;/div&gt;</description><author>eug</author><pubDate>Fri, 27 Jul 2007 09:12:11 GMT</pubDate><guid isPermaLink="false">NEW POST: Business Object validation - with Validation Application Block 20070727091211A</guid></item></channel></rss>