[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
On Apr 13, 8:22 pm, Fabio Maulo wrote: > I'm sure that each number has a logic or a RegEx pattern I am really not sure but I wrote an email to Portuguese Mail asking. The have an online service that can be used ... line an API. But this searches a postal code by Region/District/... --~--~-

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
I am not sure but you can use annotations but also something as follows: public static class BookingManager { public static void PlaceBooking(Booking booking) { var errors = DataAnnotationsValidationRunner.GetErrors (booking); if (errors.Any()) throw new RulesE

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Dario Quintana
I don't know how you're able to use the new features of interpolation of NHV with xVal, but repeat, I'm not so sure, investigate. I.e:. Now in NHV you can write a custom message like: "The Customer with Id: ${Id} has a Name with no valid length: Valid Leng {Min} till {Max}" On Mon, Apr 13, 2009 at

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Fabio Maulo
I'm sure that each number has a logic or a RegEx pattern 2009/4/13 shapper > > > Of Portugal or of Brazil ? > http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibe... > > About Portugal we have an old open issuehttp:// > nhjira.koah.net/browse/NHV-22 > > Of Portugal. Postal Codes

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
On Apr 13, 7:20 pm, Dario Quintana wrote: > Seems like xVal integrate NHV and xVal to use it with Asp.Net MVC, but you > should have a look what is going on in > background:https://xval.svn.codeplex.com/svn/RulesProviders/NHibernateValidator/... Is it bad? You wrote as a warning ... Something

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
> Of Portugal or of Brazil > ?http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibe... > About Portugal we have an old open issuehttp://nhjira.koah.net/browse/NHV-22 Of Portugal. Postal Codes? In Portugal all postal codes have the format -xxx, where x is a digit from 0 to 9.

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Dario Quintana
Seems like xVal integrate NHV and xVal to use it with Asp.Net MVC, but you should have a look what is going on in background: https://xval.svn.codeplex.com/svn/RulesProviders/NHibernateValidator/NHibernateValidatorRulesProvider.cs Seems like is providing client&server side validation for NHV, I sh

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Fabio Maulo
2009/4/13 shapper > > You don't have Portuguese. I can help with that if you tell me what > you need ... Of Portugal or of Brazil ? http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibernate.Validator/src/NHibernate.Validator.Specific/Br/ About Portugal we have an old open issue

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Fabio Maulo
2009/4/13 shapper > > > On Apr 13, 3:45 pm, Darrell Mozingo wrote: > > > > Here's a list of the current validation constraints supported: > http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibe... > > > > Darrell Mozingo > > Is there a Regex validator? That would be useful. Yes

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
On Apr 13, 3:45 pm, Darrell Mozingo wrote: > > Here's a list of the current validation constraints > supported:http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibe... > > Darrell Mozingo Is there a Regex validator? That would be useful. And one to check file type? If file is

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread shapper
On Apr 13, 4:10 pm, Fabio Maulo wrote: > Perhaps you need some Country specific validators > too.http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibe... You don't have Portuguese. I can help with that if you tell me what you need ... --~--~-~--~~~--

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Fabio Maulo
Perhaps you need some Country specific validators too. http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibernate.Validator/src/NHibernate.Validator.Specific/ Or, sometimes, you want share someone ;) 2009/4/13 shapper > > Hello, > > I am using ASP.NET MVC and I would like to use

[nhusers] Re: NHibernate Validators Questions

2009-04-13 Thread Darrell Mozingo
Hi Miguel, You're correct, you only really need the NHibernate.Validator.dll assembly. Here's a list of the current validation constraints supported: http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibernate.Validator/src/NHibernate.Validator/Constraints/ Darrell Mozingo On Ap