add database prefix to generated sql is a problem in vs 2008

R

Ryan Liu

Hi,
I set a connection string in project settings, then in Setting.Design.cs:
[global::System.Configuration.DefaultSettingValueAttribute("server=localhost;user
id=sss;password=abc;persist security info=True;database=test")]

public string FpConStrFromSetting3 { get { return
((string)(this["FpConStrFromSetting3"])); } }



After I release the application, I modify APP.exe.config, change
FpConStrFromSetting3 to ;database=test2

But it still get data from database test!

I think FpConStrFromSetting3 does pick new value from config file, but
problem is with VS2008 auto generated select cmd, it add database prefix for
each table, e.g. select * from test.provinces;

Is this a bug with Data Design in VS 2008? Any suggestion to work around?



Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top