Hello,
I've modifed the PersistenceInfoProvider.cs, to allow for dynamic connections to different databases.
private static string ActualDataBaseName = DbUtils.ActualDataBaseName;
So I replaced all the references to the db name (i.e. "Northwind") with the string variable above (ActualDataBaseName which I made static along side of the DbUtils.ActualConnectionString)
The 1st time I connect to a collection, it works, then I change the connection info via the above variables, and the connection string changes but the ActualDataBaseName does not update the PersistenceInfoProvider.
I guess this is because the PersistenceInfoProvider only gets called once in the beginning. Is there a way to force reload of the PersistenceInfoProvider with the new DBName?
Maybe a better question is How do i change the catalog name dynamically without the config file method. I have a bunch of identical databases with different names, that would use the same dll .
thx !