How to create a valid connection string for Entity Framework - The underlying provider failed on Open?
问题 Given the following connection string: <add name="PrimaryDBConnectionString" connectionString="metadata=res://*/;provider=System.Data.SqlClient;provider connection string="Data Source=10.1.1.101;Initial Catalog=primary;Persist Security Info=True;User ID=myuserid;Password=mypassword;MultipleActiveResultSets=True;Application Name=EntityFramework"" /> I attempt to open a connection in my DAL with the following: using (PrimaryDBContext ctx = new PrimaryDBContext(ConfigurationManager