<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>Validation Application Block</title><link>http://www.codeplex.com/VAB/Project/ProjectRss.aspx</link><description>The Validation Application Block encapsulates the logic needed to implement validation controls against domain model entities.   The Validation Application Block contains a set of attribute classes ...</description><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>Created Issue: Validator for XML data</title><link>http://www.codeplex.com/VAB/WorkItem/View.aspx?WorkItemId=16987</link><description>I  require to validate XMLElement type Class member&amp;#40;Property or filed&amp;#41;.&lt;br /&gt;&lt;br /&gt;Which valdator i should  use.&lt;br /&gt;</description><author>praveenkrsharma</author><pubDate>Tue, 10 Jun 2008 21:00:34 GMT</pubDate><guid isPermaLink="false">Created Issue: Validator for XML data 20080610090034P</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>Source code checked in</title><link>http://www.codeplex.com/VAB/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>andysal</author><pubDate>Sun, 06 Jan 2008 09:35:30 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080106093530A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/VAB/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>andysal</author><pubDate>Sun, 06 Jan 2008 09:33:32 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080106093332A</guid></item><item><title>Source code checked in</title><link>http://www.codeplex.com/VAB/SourceControl/ListDownloadableCommits.aspx</link><description></description><author>andysal</author><pubDate>Sun, 06 Jan 2008 09:27:59 GMT</pubDate><guid isPermaLink="false">Source code checked in 20080106092759A</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><item><title>NEW POST: Dynamic validation messages accessed from markup/code behind</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=12452</link><description>&lt;div class="wikidoc"&gt;
Hi there,&lt;br /&gt; &lt;br /&gt;I am doing some research into the Validation Application Block to assess its appropriateness for a particular ASP.NET application.&lt;br /&gt;So far it looks great and I would like to thank the P&amp;amp;P team for another great block.&lt;br /&gt; &lt;br /&gt;The one thing that is holding me back from giving the all clear to use the VAB is that the application we are developing requires qualified error messages. For example, on some pages we may have repeated form fields for two instances of a particular object, in one instance there will be two address blocks, one for residence and the other for correspondence/mail. As they will be saving to the same business object (i.e. Address.cs) I require a method of qualifying the validation messages in order to distinguish between two fields.&lt;br /&gt;i.e. &lt;br /&gt; &lt;br /&gt;1. * The postcode you have entered is invalid.&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;The postcode you have entered is invalid.&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;2. * The home postcode you have entered is invalid&lt;br /&gt;&lt;ul&gt;
&lt;li&gt;The correspondence postcode you have entered is invalid&lt;/li&gt;
&lt;/ul&gt; &lt;br /&gt;1 is what would occur from normal use of the VAB as I have encountered in my research so far, 2 is the desired behaviour.&lt;br /&gt; &lt;br /&gt;I was looking at extending the PropertyProxyValidator class and allowing the setting of a QaulifierString in the markup (or code behind if there was a need for dynamic messages).&lt;br /&gt; &lt;br /&gt;I am interested to hear if others have encountered this and resolved it or if there is something already implemented that I have missed so far.&lt;br /&gt; &lt;br /&gt;Cheers&lt;br /&gt; &lt;br /&gt;Aaron&lt;br /&gt;
&lt;/div&gt;</description><author>aaroncat</author><pubDate>Wed, 11 Jul 2007 11:59:00 GMT</pubDate><guid isPermaLink="false">NEW POST: Dynamic validation messages accessed from markup/code behind 20070711115900A</guid></item><item><title>NEW POST: VAB and RegExValidator - How can I do a "does contain"</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=12384</link><description>&lt;div class="wikidoc"&gt;
By default, the RegExValidator flag items when the data to be validated does not contain the given pattern. What If i want to flag the data only when it &lt;b&gt;does&lt;/b&gt; contain the pattern.&lt;br /&gt; &lt;br /&gt;For example, I have a url field that I use elsewhere in my applicaton programatically. I dont want people adding http:// to the field, becuase I will add that later. So I only want the validator to flag data when it &lt;b&gt;does&lt;/b&gt; contain 'http://'.&lt;br /&gt;
&lt;/div&gt;</description><author>bullman</author><pubDate>Mon, 09 Jul 2007 21:41:16 GMT</pubDate><guid isPermaLink="false">NEW POST: VAB and RegExValidator - How can I do a "does contain" 20070709094116P</guid></item><item><title>NEW POST: ValueConvert problematic</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=10858</link><description>&lt;div class="wikidoc"&gt;
We are planning to use the VAB with a Windows user control bound to a business object.&lt;br /&gt;When using a property of type 'Int16' of the business object it turns out we cannot handle using attributes only, the following errors:&lt;br /&gt; - empty field in the user control&lt;br /&gt; - Int32 value (&amp;gt;Int16) in the user control&lt;br /&gt;- only Int16 input works correctly&lt;br /&gt; &lt;br /&gt;-  string value in the user control  -&amp;gt; in this case the validator of the VAB gives an error message, but we cannot customize it via attributes&lt;br /&gt; &lt;br /&gt;When we have to hande all input errors in the ValueConvert event of the validator provider, what then are the benefits of the VAB left?&lt;br /&gt;
&lt;/div&gt;</description><author>Hermans</author><pubDate>Thu, 31 May 2007 15:25:33 GMT</pubDate><guid isPermaLink="false">NEW POST: ValueConvert problematic 20070531032533P</guid></item><item><title>NEW POST: Validation Application Block - expose to UI</title><link>http://www.codeplex.com/VAB/Thread/View.aspx?ThreadId=10737</link><description>&lt;div class="wikidoc"&gt;
Hi,&lt;br /&gt; &lt;br /&gt;I like to access the validations done by an object from the UI layer (ex : webpage). This is because, for validations like StringLengthValidator, the webpage can check the available validations with an object and set the maxlength property of the respective textbbox.&lt;br /&gt; &lt;br /&gt;I am able to get the attribute associated with a property using reflection. but could not get the values with that (ex: minlength and maxlength).&lt;br /&gt; &lt;br /&gt;Please help. thanks in advance.&lt;br /&gt;
&lt;/div&gt;</description><author>ksfrahman</author><pubDate>Mon, 28 May 2007 06:03:48 GMT</pubDate><guid isPermaLink="false">NEW POST: Validation Application Block - expose to UI 20070528060348A</guid></item><item><title>Project Management Forum: Validation Application Block in EntLib v3</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=VAB&amp;ForumId=1392&amp;ThreadId=2138</link><description>Hi -

I'm the Product Manager for Enterprise Library in the Microsoft patterns &amp; practices team. We've already started work on our own Validation Applciation Block for Enterprise Library v3. We recently found out about this project, and I thought it would be good to sync up to see if there are any ways we can align or work together. If you can contact me at tom.hollander at microsoft.com, we can discuss this offline.

thanks!
Tom Hollander</description><author>tomhollander</author><pubDate>Wed, 01 Nov 2006 23:54:58 GMT</pubDate><guid isPermaLink="false">Project Management Forum: Validation Application Block in EntLib v3 20061101115458P</guid></item><item><title>Developer Forum: Contextual validation</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=VAB&amp;ForumId=1391&amp;ThreadId=1993</link><description>First of all, I'm sorry for my poor english! :-)

I want to talk about a small doubt: why VAB is designed for a single validation context?

I try to explain it better...

Maybe that, in some cases, a MaxLenght validation must be set due to database capabilities or also to DAL requisites.

I.e. maybe that a Product.Description property value can be smaller than 255 charachters if the user works with an Access DB; otherwise if the DB is SQLServer, MaxValue maybe greater.

It is wrong to think on a contextual validation rule module (plug-in or similar) separated from entities?

Thx!</description><author>MarioDuz</author><pubDate>Mon, 23 Oct 2006 16:45:53 GMT</pubDate><guid isPermaLink="false">Developer Forum: Contextual validation 20061023044553P</guid></item><item><title>User Forum: Fixed bug</title><link>http://www.codeplex.com/Project/DisplayThread.aspx?ProjectName=VAB&amp;ForumId=1393&amp;ThreadId=1833</link><description>maybe there is a bug in current Change Set: 8157

in NullableAttribute.GetRule() is

protected override ValidationRule GetRule()
{
  return new NullableRule(false);
}

while it should be 

protected override ValidationRule GetRule()
{
  return new NullableRule(value);
}</description><author>lucaminudel</author><pubDate>Fri, 13 Oct 2006 20:48:28 GMT</pubDate><guid isPermaLink="false">User Forum: Fixed bug 20061013084828P</guid></item></channel></rss>