I'm using SelfServicing on a couple of SqlExpress 2008 databases. Normally I manage these via SqlExpress Management Studio and they just appear as a two separate db's. I have reference tables from both these databases in my LLBLGen project, and even though I only have one "Main.ConnectionString" entry in my WinForms app.config file, there's never a problem accessing either database.
Now I've got the stage of deploying the project, and I need to attach to the mdf files using "AttachDbFilename" and "User Instance = true". Suddenly I'm having problems connecting to the database. I'm not surprised, but I need to find a way to have LLBLGen utilise the correct connectionString. I've placed another entry in app.config, and I'm hoping that I can use a combination of "sqlServerCatalogNameOverwrites" and DbUtils.ActualConnectionString to connect.
I'm assuming that things worked previously because I was running SqlExpress almost like a normal database server, and as long as the Catalog name was correct, the tables could be accessed with the same connectionString. Now that I'm using User Instance, I need to somehow handle the connection at runtime. Can I do this in the DAL (I have two separate DAL's which reference the same LLBLGen project)?
TIA