简体   繁体   English

如何在Entity Framework中设置SQL Server 2008的登录信息?

[英]How do I set the login info for SQL Server 2008 in Entity Framework?

Okay I'm still learning the ropes with the Entity Framework and I came across one more small issue. 好的,我仍在学习实体框架的知识,并且遇到了另一个小问题。

When I create my Entity Model from the SQL Server 2008 database it warns me about saving the login information in the connection string in the config file. 当我从SQL Server 2008数据库创建我的实体模型时,它警告我有关将登录信息保存在配置文件中的连接字符串中的警告。 Initially I wasn't concerned about that so I just left it in there, but now I want to start thinking about deployment. 最初我并不担心这一点,所以我只是将其留在了那里,但是现在我想开始考虑部署。 So if I follow that advice and don't include the login information in the connection string, how else can I set that information later so that it can login to the database server? 因此,如果我遵循该建议并且未在连接字符串中包含登录信息,那么以后如何设置该信息,以便它可以登录到数据库服务器?

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从SQL Server中填充一组实体框架代码优先POCOS(一次关闭)? - How do I populate a set of Entity Framework Code first POCOS from SQL server (once off)? 实体框架4:SQL Server 2008的性能不佳 - Entity Framework 4 : Bad performance with SQL Server 2008 实体框架和SQL Server 2008 Express - Entity Framework & SQL Server 2008 Express 设置 SQL Server 2008,如何使用 SqlConnection 从 C# 访问它? - Set up SQL Server 2008, how do I access it from C# using SqlConnection? C#,实体框架和删除SQL Server 2008中的子寄存器 - C#, Entity Framework and delete child registers in SQL Server 2008 实体框架4和SQL Server 2008多个可能的外键 - Entity Framework 4 and SQL Server 2008 Multiple Possible Foreign Keys 如何告诉Entity Framework首先在代码中使用SQL Server Compact? - How do I tell Entity Framework to use SQL Server Compact in code first? 如何使用C#,Entity Framework和SQL Server 2008读/写地理数据? - How to read / write geography data using C#, Entity Framework and SQL Server 2008? 如何使用Entity Framework Core模拟SQL Server? - How to do SQL Server impersonation with Entity Framework Core? 如何使用实体框架在SQL Server中查找我想要的表 - How to find the table i want in an sql server using entity framework
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM