Hi! Im trying to access several databases with several models. I follow the example at: http://www.castleproject.org/index.php/ActiveRecord:Using_it#Accessing_more_than_one_database (this page seems not to be accesible by wiki links, I found it by google :( ) But it doesnt work because ActiveRecordStarter.Initialize doesnt find the models. Im asuming that "MyModel" in the example is a Namespace. I also try with InPlaceConfiguration but the result is the same, null reference. This is the error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object in <0x0037f> Castle.ActiveRecord.ActiveRecordStarter:Initialize (IConfigurationSource source, System.Type[] types) in [0x000b6] (at /home/path/HttpApp.cs:120) Pew.HttpApp:Application_Start
At the moment the way im switch between databases is invoking Initialize for every time because Initialize loads the models deleting the previous ones. But this is a dirty solution. Thanks _______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
