|
|
Reported by josehr,
Sep 15, 2008
Is there a way to remove the Active Record dependency?
I need to use NH 2.0.0.4000 but AR depends on NH 2.0.0.1001
I just tried replacing:
ActiveRecordConfigurationSource activeRecordConfiguration = new
ActiveRecordConfigurationSource();
activeRecordConfiguration.Add( nhibernateProperties );
ActiveRecordStarter.Initialize( inputAssembly, activeRecordConfiguration );
Configuration nhibernateConfiguration =
ActiveRecordMediator.GetSessionFactoryHolder().GetConfiguration( typeof(
ActiveRecordBase ) );
by:
NHibernate.Cfg.Configuration nhibernateConfiguration = new Configuration();
nhibernateConfiguration.AddProperties(nhibernateProperties);
but now I get:
System.IO.FileNotFoundException was unhandled
Message="Could not load file or assembly 'DynamicProxyGenAssembly2' or
one of its dependencies. The system cannot find the file specified."
Source="mscorlib"
FileName="DynamicProxyGenAssembly2"
|