Waala:
This worked really nice.
but i have a new problem.
I have a LLBLGen project with two databases included. One is "Public" and another one is "Private".
At the time of login, I am taking the correct database name based on the logged user and changing it at run time in DataAccessAdapter to replace the "Private" Database.
Dim localDatabase As String = Str(System.Web.HttpContext.Current.Session("GlobalAccountID"))
InitClass(ReadConnectionStringFromConfig(), False, CatalogNameUsage.ForceName, localDatabase, Nothing, Nothing)
Since the LLBLGen Project has Public database included, when accessing tables from "Public" database, I get error:
Invalid object name ' 1078.dbo.Application'
Where Application is belongs to the "Public" Database.
Where 1078 is the database for the logged user.
I hope you get the picture.
How do I handle this situation? Do I need create one LLBLGen project for "Private" and another one for "Public"?
Any help is appreciated.
Thanks.