This is from Ayende’s example (http://ayende.com/Blog/archive/2009/05/01/nhibernate-validator.aspx) and uses the NH Validation syntax:
--------------- [NotNullNotEmpty] [Length(25)] public virtual string Title Schema Generation - Before: Title <http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&nq=NEW&qu=NVARCHAR&IntlSearch=&boolean=PHRASE&ig=01&i=09&i=99> NVARCHAR(255) <http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&nq=NEW&qu=null&IntlSearch=&boolean=PHRASE&ig=01&i=09&i=99> null After: Title <http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&nq=NEW&qu=NVARCHAR&IntlSearch=&boolean=PHRASE&ig=01&i=09&i=99> NVARCHAR(25) <http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&nq=NEW&qu=not&IntlSearch=&boolean=PHRASE&ig=01&i=09&i=99> not <http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&nq=NEW&qu=null&IntlSearch=&boolean=PHRASE&ig=01&i=09&i=99> null From: [email protected] [mailto:[email protected]] On Behalf Of John Simons Sent: Wednesday, January 13, 2010 4:15 PM To: [email protected] Subject: Re: Some thoughts on the Validator Component Roadmap Point 3 should actually be, it provides an extension point to support web browser validation. What is point 2, an example please? Cheers John _____ From: G. Richard Bellamy <[email protected]> To: [email protected] Sent: Thu, 14 January, 2010 10:32:02 AM Subject: Some thoughts on the Validator Component Roadmap I’d like to see: 1. Model validation 2. Schema generation based on Validation Attributes 3. Client-side validation using jQuery or Prototype or whatever >From what I know (and please correct me if I’m wrong), we currently do #1 & >#3. NH does #1 & #2. As I see it, I have two options: 1. Get with the NH Validation folks, and see what it would take to merge the two codebases, or 2. Make our Validation compliant with the NH Schema generation process. Also, didn’t someone mention the idea of a standardized validation interface, kinda like the Common Service Locator interface? Did I completely mis-remember that? Thoughts? -rb -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en. _____ See what's on at the movies in your area. Find out now <http://au.rd.yahoo.com/movies/mailtagline/*http:/au.movies.yahoo.com/session-times/> .--
You received this message because you are subscribed to the Google Groups "Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
