Change connection string & reload app.config at run time

前端 未结 8 1394
广开言路
广开言路 2020-11-28 03:26

When I change the connection string using this code, it does not reload app.config at runtime. I expected it to reload similarly to how we reload app.conf

8条回答
  •  执念已碎
    2020-11-28 04:01

    Yeah, when ASP.NET web.config gets updated, the whole application gets restarted which means the web.config gets reloaded.

提交回复
热议问题