NHibernate Forge
The official new home for the NHibernate for .NET community

NHibernate Validator Quickstart

The NHibernate Validator Team had prepared examples to you be able to use this validation framework in a easy way. With four examples we are covering the following topics:

 

1) Winforms

In this example you will how you can easily integrate NHibernate Validator and some helper clases with System.Windows.Forms.

2) NHibernate Integration

Trying to integrate NHibernate Validator with NHibernate? Not a problem. In this example you will how really get these 2 great frameworks working together. NHibernate Validator let you intercept Saves and Updates from NHibernate validating your entities before these changes take place. Note you have to create a database based on the configured connection string.

3) Asp.Net MVC

Asp.Net MVC has a cool way to add validation errors from model and display them all into the View. This example cover the easy integration between these frameworks. Note, you need Asp.Net MVC installed into your machine.Download Asp.net MVC

4) Entity Validator

Sometimes you need to validate a property which depends of another(s) property(ies). The most common example is when you have to validate a range of dates. This example cover this funcionality and show to us how to configurate it using attributes, xml and fluent.

 

Download it here


Posted may 18 2009, 01:31 a.m. by Dario Quintana

Comments

sravansurabhi wrote re: NHibernate Validator Quickstart
on 05-18-2009 15:12

This is really good. Just curious to know when can we expect the Validation Framework to work with WPF

Dario Quintana wrote re: NHibernate Validator Quickstart
on 05-18-2009 15:22

NHV is ready, somebody with WPF skills has to write an example/framework on top NHV to support integration. Btw, without a framework you can still using NHV on WPF.

sravansurabhi wrote re: NHibernate Validator Quickstart
on 05-18-2009 15:47

Thanks a lot. It will be good if we have an example similar to WinForms example.

sravansurabhi wrote re: NHibernate Validator Quickstart
on 05-18-2009 15:50

NHibernate.Validator.Binding project in winForms exampe works only with WinForms. I am expecting a similar project for WPF.

Rodrigo Juarez wrote re: NHibernate Validator Quickstart
on 11-16-2009 3:27

The source code for NHibernate.Validator.Binding is only in the example? It will be part of the bin distribution?

Dario Quintana wrote re: NHibernate Validator Quickstart
on 11-16-2009 7:20

It's only in the example and won't be part of the distribution.

Powered by Community Server (Commercial Edition), by Telligent Systems