IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

MapForce - Autogenerated C# - Global Resources Options · View
maquejp
Posted: Friday, May 17, 2013 8:24:20 AM
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!
zXSwordXz
Posted: Friday, August 23, 2013 1:26:17 PM
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

learnk12
Posted: Monday, February 3, 2014 9:41:16 AM
Rank: Guest

Joined: 12/13/2005
Posts: 0
Thanks for this valuable information.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.