I'm using LLBLGen Pro version 2.6 on MSSQL 2005 and 2008
I have a windows form where the users can select which database they want to connect to. After selection I need to change the ConnectionString on Adapters like this static one
public static class MyClass
{
private static readonly DataAccessAdapter _Adapter = new DataAccessAdapter();
..
public static void FetchSomething()
{
...
_Adapter.FetchTypedList(...
}
}
I've tried
_Adapter.CloseConnection();
_Adapter.ConnectionString= newConnectionString;
_Adapter.OpenConnection();
MyClass.FetchSomething()
but that doesn't work, it fetches using the old ConnectionString.
What can I do ?