Asp.net 实体框架连接字符串

Asp.net 实体框架连接字符串,asp.net,entity-framework,Asp.net,Entity Framework,我在VisualStudio 2010中使用实体。调试ASP.NET应用程序时,它使用当前用户标识连接到数据库,而不是连接字符串中指定的内容: 我是否必须指定一些东西才能使我的应用程序使用连接字符串标识?指定“Integrated Security=True”或“User Id”和“Password”,而不是两者都指定 请参阅,其中指定了“密码”: SQL Server帐户登录的密码不与(强烈推荐)“集成安全=真”选项一起使用 (我的重点) <connectionStrings&

我在VisualStudio 2010中使用实体。调试ASP.NET应用程序时,它使用当前用户标识连接到数据库,而不是连接字符串中指定的内容:


我是否必须指定一些东西才能使我的应用程序使用连接字符串标识?

指定“Integrated Security=True”或“User Id”和“Password”,而不是两者都指定

请参阅,其中指定了“密码”:

SQL Server帐户登录的密码不与(强烈推荐)“集成安全=真”选项一起使用

(我的重点)

   <connectionStrings>
     <add name="RFV2_Entities" connectionString="metadata=res://*/Model.RFDB.csdl|res://*/Model.RFDB.ssdl|res://*/Model.RFDB.msl;provider=System.Data.SqlClient;provider
 connection string=&quot;data source=xxx\xxx;initial
 catalog=xxx;User Id=xxx;Password=yyy;integrated
 security=True;multipleactiveresultsets=True;App=EntityFramework&quot;"
 providerName="System.Data.EntityClient" />    </connectionStrings>