Home
Help
Register
Log in

Search

 
   Active Threads  

You are here: Home > LLBLGen Pro > Architecture> May I have code for ..... ?
 

Pages: 1
Architecture
May I have code for ..... ?
Page:1/1 

  Print all messages in this thread  
Poster Message
nopchan
User



Location:

Joined on:
30-Apr-2005 02:19:03
Posted:
56 posts
# Posted on: 30-Apr-2006 13:38:27.  
1. connect to two or three server on the same time (llblgenpro - data adapter)

2. May I have code for change connection string in code but not change in config file (xxx.config)




  Top
JimHugh
User



Location:
Davis, CA
Joined on:
16-Nov-2005 14:32:25
Posted:
191 posts
# Posted on: 30-Apr-2006 16:05:36.  
1. LLBLGen uses ADO.Net under the hood. Each adapter can only be connected to one server. However, multiple adapters can participate in a COM+ Enterprise transaction using a ComPlusAdapterContext. (see manual)

2. The connection string can be specified in runtime in the constructor of an adapter object.

Code:

Dim ConnectionString as string = "Server=(local);Database=Northwind;Trusted_Connection=true"
Dim adapter As SD.LLBLGen.Pro.ORMSupportClasses.IDataAccessAdapter = New DatabaseSpecific.DataAccessAdapter(ConnectionString)



Jim Hughes  Top
Pages: 1  


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

Version: 2.1.12172008 Final.