My favorites | Sign in
Project Logo
       
New issue | Search
for
| Advanced search | Search tips
Issue 5: Remove ActiveRecord reference
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----
Type-Defect
Priority-Medium


Sign in to add a comment
 
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"
  

Sign in to add a comment

Hosted by Google Code