Hello,

I'm not the first to suggest this, but here's a patch for setting a default 
proxyfactory.factory_class. I needed to add this to make all the tests work for 
nhib21 alpha 2. However, I'm not sure of the impact this will have on 2.0, or 
even how to do version detection. 

Thanks,
Michael

Index: src/FluentNHibernate/Cfg/Db/PersistenceConfiguration.cs
===================================================================
--- src/FluentNHibernate/Cfg/Db/PersistenceConfiguration.cs     (revision 442)
+++ src/FluentNHibernate/Cfg/Db/PersistenceConfiguration.cs     (working copy)
@@ -29,6 +29,7 @@
         protected const string DriverClassKey = "connection.driver_class";
         protected const string ConnectionStringKey = 
"connection.connection_string";
         protected const string ProxyFactoryFactoryClassKey = 
"proxyfactory.factory_class";
+        protected const string DefaultProxyFactoryFactoryClassName = 
"NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle";
         protected const string AdoNetBatchSizeKey = "adonet.batch_size";
 
         private readonly Dictionary<string, string> _rawValues;
@@ -44,6 +45,7 @@
             _rawValues = new Dictionary<string, string>();
             _values = new Cache<string, string>(_rawValues, s=>"");
             _values.Store(ConnectionProviderKey, 
DefaultConnectionProviderClassName);
+            _values.Store(ProxyFactoryFactoryClassKey, 
DefaultProxyFactoryFactoryClassName);
             connectionString = new TConnectionString();
         }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: DefaultCastleProxy.patch
Description: DefaultCastleProxy.patch

Reply via email to