[英]EntiryFramework in WebApp: HowTo Store DSN
i'm using the entity framework in a asp.net 3.5 web application. 我在asp.net 3.5 Web应用程序中使用实体框架。
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). (我必须经常删除模型,因为vs2008中的数据库设计器不能很好地更新外键)。
One option is to encrypt the configuration section in your web.config file that holds the connection string. 一种选择是对保存连接字符串的web.config文件中的配置部分进行加密。 See this support article for more information. 有关更多信息,请参见此支持文章 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.