Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > LLBLGen Pro Runtime Framework> Assigning ConnectionString to DataAccessAdapter in Login
 

Pages: 1
LLBLGen Pro Runtime Framework
Assigning ConnectionString to DataAccessAdapter in Login
Page:1/1 

  Print all messages in this thread  
Poster Message
pandu
User



Location:

Joined on:
18-May-2006 07:20:06
Posted:
86 posts
# Posted on: 29-Nov-2006 06:58:39.  
I have multiple databases with same set of tables and I need to assign ConnectiongString when the user login into the Application.

Let me explain the problem:

My application already have "Dim da as New DataAccessApapter" lines that works directly with "Main.ConnectionString"

I have created new connectionString at the time of login. But I am too lazy Wink to change the line to "Dim da as New DataAccessAdapter(NewConnectionString) everywhere.

Is there any other way to apply the new ConnectionString to the DataAccessAdapter? Regular Smiley

Thanks.

  Top
Walaa
Support Team



Location:

Joined on:
21-Aug-2005 16:03:48
Posted:
14639 posts
# Posted on: 29-Nov-2006 07:11:59.  
You can modify the generated code (DBSpecific->DataAccessAdapter.cs)
Read the connection string and set it in the Constructor/initialization of the DataAccessAdater.

If yo don't want to modify the gen. code, drive a class from the DataAccessAdapter and have the initialization in the drived class, and then use your drived class instead of the DataAccessAdapter.


  Top
Pages: 1  


Powered by HnD ©2002-2007 Solutions Design
HnD uses LLBLGen Pro

Version: 2.1.12172008 Final.