can't change DB in V2

Posts   
 
    
gizmo
User
Posts: 3
Joined: 25-Aug-2007
# Posted on: 11-Oct-2007 13:06:14   

we used LLBLGen V1 (self-serving concurrency model) in an application that would prompt the user for which server and DB they wanted to attach to while the application is running.

please let me know if this is no longer supported with V2. if it is please point to or provide a code sample.

is it supported using adapters? sample code for this?

Thank you!

reference: <http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6570> <http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=11362&StartAtMessage=0&#63304>

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 11-Oct-2007 15:50:38   

please let me know if this is no longer supported with V2. if it is please point to or provide a code sample.

is it supported using adapters? sample code for this?

I'm not sure I completly understand your question. Do you want to change the Dabase Server and Database/Catalog name at deployment time, or at runtime?

If at deployment time, then please consult the manual for "Using the generated code - Application configuration through .config files"

ELse if you want to change it runtime, then I recommend using the Adapter model, and supply the connection string to the constructor of the adapter, this will take care of the Database Server switch. And for the database name, you should use CatalogNameUsage.ForceName and pass the name to DataAccessAdapter.CatalogNameToUse