LLBnGen Schema/Catalog Overwrite

Posts   
 
    
Rishi
User
Posts: 69
Joined: 31-Oct-2011
# Posted on: 09-Jan-2012 23:10:36   

Hi,

I know we can overwrite schema and catalog using web.config. Can you help me doing this using Code? I mean any other way of doing this other then specifying in web.config, so can do better error handling?

Rishi

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Jan-2012 04:38:54   

Hi Rishi,

From your older threads I see you are using Adapter and v3.1, so I will assume that.

When you create the DataAccessAdapter instance, there is a ctor that receive a **CatalogNameOverwriteHashtable **and SchemaNameOverwriteHashtable, you can pass the overwrites with that objects.

Some examples: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=17302&StartAtMessage=0&#96893 http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=13575&StartAtMessage=0&#75633

David Elizondo | LLBLGen Support Team