May I have code for ..... ?

Posts   
 
    
nopchan
User
Posts: 56
Joined: 30-Apr-2005
# 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)

JimHugh
User
Posts: 191
Joined: 16-Nov-2005
# 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.


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