I have 2 database with separate objectmodel and respositories (total 4 dll)
The first database is call "source" and the second is called "destination". The repositories from source extends directly from ActiveRecordMediator<>. and the repositories from destination extends from an abstract class which looks like this: public abstract class DestinationDatabase<T> : ActiveRecordMediator<T> where T : Entity I have the following setup: public static void SetupDatabase(string sourceConnectionString, string destinationConnectionString) { var sourceProperties = new Dictionary<string,string>(); sourceProperties.Add("connection.driver_class", "NHibernate.Driver.SqlClientDriver"); sourceProperties.Add("dialect", "NHibernate.Dialect.MsSql2005Dialect"); sourceProperties.Add("connection.provider", "NHibernate.Connection.DriverConnectionProvider"); sourceProperties.Add("proxyfactory.factory_class", "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle"); sourceProperties.Add("connection.connection_string", sourceConnectionString); var destinationProperties = new Dictionary<string, string> (); destinationProperties.Add("connection.driver_class", "NHibernate.Driver.SqlClientDriver"); destinationProperties.Add("dialect", "NHibernate.Dialect.MsSql2005Dialect"); destinationProperties.Add("connection.provider", "NHibernate.Connection.DriverConnectionProvider"); destinationProperties.Add("proxyfactory.factory_class", "NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle"); destinationProperties.Add("connection.connection_string", destinationConnectionString); var inplace = new InPlaceConfigurationSource(); inplace.Add(typeof(ActiveRecordBase), sourceProperties); inplace.Add(typeof(DestinationDatabase<>), destinationProperties); ActiveRecordStarter.Initialize(new[] {typeof (UserDest).Assembly, typeof(UserInfo).Assembly, typeof (DestinationDatabase<>).Assembly}, inplace); } Only the source repositories is working. If I changes to inplace.Add(typeof(ActiveRecordBase), destinationProperties); The destination repositories is working. What am I missing? Thx in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to castle-project-users@googlegroups.com To unsubscribe from this group, send email to castle-project-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---