registered a NHibernate proxy factory fot IDataErrorInfo behavoir with lazy properties

I have implemented IDataErrorInfo interface using Castle.DynamicProxy IIterceptor. I have also implemented a NHibernate interceptor which instantiates my entities using this interceptor.

I wish to implement IDataErrorInfo for lazyload proprerties as explained here

In the link above the solution required to register DataBindingProxyFactory as NHibernate proxy factory

I use NH 3.2 and don't know how and where register this

Can anyone hel me?

thanks to all

Answers


.ExposeConfiguration(c => c.SetProperty(Environment.ProxyFactoryFactoryClass, typeof(DataBindingProxyFactory).AssemblyQualifiedName))

thanks to João Manso][1] [1]: joao.manso.eu/index.php/2011/08/… – guton Sep 9 '12 at 13:35


Need Your Help

Java Web Start JFrame size not respected

java swing java-web-start

I'm creating a new JFrame from inside a Java Web Start application. The content of the frame often changes and it wasn't resizing, so I overrode revalidate to explicitly set the frame size. When I ...

How can I compare 2 sql server databases schema and get the update script

sql-server

I'm not sure if there is such a tool... given 2 sql server databases, I want the tool to tell me what is different between the 2 and give me the update script. I.e. create indexes, create table, cr...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.