Multiple Databases in the same project.

Posts   
 
    
sesmith2k
User
Posts: 5
Joined: 22-Aug-2008
# Posted on: 27-Jan-2010 23:43:48   

I have 2 separate, unlike databases. Each has an entirely different schema. I have generated 2 separate Data layers using LLBLGEN 2.6 self-service template. I have always used Main.connectionstring in the web.config but how do I do this for 2 separate datalayers?

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 28-Jan-2010 06:20:53   

For each LLBLGen project, go to** Project -> Properties**, then change the **ConnectionStringKeyName **to a different name, (for instance DB1.ConnectionString and DB2.ConnectionString). Then regenerate code for both projects.

David Elizondo | LLBLGen Support Team