Reading connection string from external config file

前端 未结 4 757
一整个雨季
一整个雨季 2020-12-17 16:46

I have created a console application and an app.config file and Connections.config file. The app.config file has a connectionstring property source pointing to the Connectio

4条回答
  •  轮回少年
    2020-12-17 16:50

    Your Connections.config file should be as shown below without the xml header

    
      
    
    

    Also for it to correctly locate the file in your console application, please set the Copy to Output Directory to Copy Always or Copy If Newer.

提交回复
热议问题