The full syntax in node should look like this:
<property name="proxyfactory.factory_class">
NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu
</property>
Can you verify that this is all text? Also make sure that with your DLL you have the following:
LinFu.DynamicProxy.dll
NHibernate.ByteCode.LinFu.dll
Hope this helps. I use this for lazy loading and it works successfully with 2.1.0GA branch (even if our branch has some fixes from the outside (SqlServerCE problems)
Update 1
Well, in my projects, I refer to the following assemblies:
Antlr3.Runtime.dllIesi.Collections.dllLinFu.DynamicProxy.dlllog4net.dllNHibernate.byteCode.LinFu.dllNHibernate.dll
You can also publish the full hibernate.cfg.xml file, NHibernate configuration file?
Update 2
log4net? , - . - , :
FileAppender appender = new FileAppender();
appender.File = "nhibernate.log";
appender.LockingModel = new FileAppender.MinimalLock();
appender.ImmediateFlush = true;
pattern = "%timestamp, %thread, %level, %logger, %ndc,%message %newline";
PatternLayout pl = new PatternLayout(pattern);
appender.Layout = pl;
appender.ActivateOptions();
appender.Threshold = log4net.Core.Level.Verbose;
log4net.Config.BasicConfigurator.Configure(appender);
, , .
, .
3
, , , :
- FirstSolution/Domain/Product.cs
- LinFu.DynamicProxy NHibernate.ByteCode.LinFu FirstSolution.
- NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu
- SchemaExport (cfg).Execute(false, true, false, false); SchemaExport (cfg).Execute(false, true, false);