|
|
Rank: Newbie
Joined: 8/6/2012 Posts: 2
|
Hello,
I am investigating the auto generate C# solution through mapforce. I can pass in the cmd line the input (mapping.exe /MYNUMBER 1) but I notice that the database connection string is hardcoded. Is there a way to make the C# solution using the Global Resource by passing as a parameter in the cmd line like with "mapforce.exe /GLOBALRESOURCECONFIG DBPROD"
Because for the moment, I have to create a new solution for each database we have (DEV/TEST/ACCEPTANCE/PRODUCTION)
Thank you!
|
|
Rank: Newbie
Joined: 8/20/2013 Posts: 6 Location: New York
|
Hi there,
I'm not quite sure I understand your question 100% correctly but will try to help. What I've done with the Generated C# code is create a user interface(Windows Form). I've then allow the users to browse and select their upload files and I've created a connection.ini file to store the database connection string which can be change at any time. I could have also create an interface the connection string too but elect not to do that since I can edit the connection.ini file at any given time. If this will help you, let me know and I can provide further assist you.
zXSwordXz
|
|
Rank: Guest
Joined: 12/13/2005 Posts: 0
|
Thanks for this valuable information.
|
|
|
guest |