This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I would like to be able to programmatically (or at least externally) set the connection string using which the LightSpeed diagram connects to the DB. In our codebase, different source control branches are used for different development environments (such as development, testing, staging, production, etc.), and each such environment uses a different database instance. On each of the computers running these environments there is Visual Studio installed and some development or bug fixing work may be done on them. It would have been really helpful if the diagram could use an external connection string for the connection to the database rather than one that was manually inserted into the appropriate Properties field (this is because when you merge the project from, say, a development branch to the testing branch, the connection string found in the diagram's properties (for connecting to the development, rather than testing database) will be merged as well, creating potential for errors). Does anyone know if such a thing is possible at all and how it could be accomplished? Thanks! |
|
|
Hi, The .lsmodel files are XML files, you might be able to edit this externally and change the connectionString attribute on the root model element. Cheers, Sean |
|
|
Check here for more connection string samples. Joviel |
|