简体   繁体   中英

web.config app.config and connection stringq linq

I have solution which has webSite and Core projects. In Core I have all model using LINQ. I there use app.Config to set paths to database in connection string used by my model.

Then I use this in my website.

Now I would like to have possibility that after deploying website on the iis to change that connections strings.

Before Linq I used web.Config to do that, now I dont know how to achieve that.

THanks for help

像以前一样将连接字符串放入web.config中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM