简体   繁体   中英

EntiryFramework in WebApp: HowTo Store DSN

i'm using the entity framework in a asp.net 3.5 web application.

What is best practice to store the database connection string in a secure (encrypted) way? (i'm using username/password to get to the database)

(i have to delete the model very often, as the database designer in vs2008 does not update the foreign keys very good).

One option is to encrypt the configuration section in your web.config file that holds the connection string. See this support article for more information.

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