How to use a set of Database Instances

Posts   
 
    
Horstmann
User
Posts: 4
Joined: 19-May-2008
# Posted on: 04-Jul-2008 10:35:24   

Hello,

I have my LLBLGen project up and running a a test database insance.

For our development I would need to have the generated code running with a set of different database instances with all the same table structure / schema.

When I first tried to let the code connect to an other instance than the one it originally was created on, I got quite a lot of errors, since the original datbase name was created into some internal LLBLGen classes.

Is there a way to let LLBLGen generate code based on one db-instance and let it run connected to a second db-instance (with the same schema) ?

What do I need to do to make my LLBLGen understand?

Thank You.

Alles Gute Mario

P.S. FYI: I'm now using a full version, not the test version any longer.

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 04-Jul-2008 11:30:23   

You should use Catalog name overwriting in your application config file.

Please check it out in the following docs link

Horstmann
User
Posts: 4
Joined: 19-May-2008
# Posted on: 04-Jul-2008 16:05:06   

Well, I'm a little confused...

I don't know the name of the new DB-Instance at compile time. In other words I can't add something to a config file that's used when compiling the project.

All I want is to have LLBLGen connected to another DB instance than the one it was originally connected to. But I don't know the connection or name of this instance when I compile the generated code.

I would expect the adapter to handle this. If you like I could even give the original connection string or db-instance name in some way. But I can't tell the name of the new Database in a config file, when the generated code is compiled.

Do you have an idea?

Thank you.

Alles Gute Mario

P.S. You are so fast responding to messages. simple_smile Thanks !

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jul-2008 18:28:43   

What you are trying to achieve is to change the catalogName at runtime, isn't? : http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=12045 http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=341

David Elizondo | LLBLGen Support Team