Fetching connection string from appconfig file in c#

前端 未结 10 982
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 07:39

I have the following connection string declared in my app.config file:

  
    

        
10条回答
  •  一生所求
    2020-12-19 08:17

    
      
         
      
    

    Will the above configuration works with the API/code like:

    string str = ConfigurationSettings.AppSettings["SqlConnectionString"];
    

提交回复
热议问题