Entity framework sql客户端的实体框架连接字符串

Entity framework sql客户端的实体框架连接字符串,entity-framework,Entity Framework,我在web.config中定义了一个EF连接字符串,但出于某种原因,我希望使用.NET SQL客户端。有办法使用EF连接字符串吗?有 // Add a reference at the top of your code file using System.Configuration; // Within the code body set your variable string cs = ConfigurationManager.ConnectionStrings["connection

我在web.config中定义了一个EF连接字符串,但出于某种原因,我希望使用.NET SQL客户端。有办法使用EF连接字符串吗?

// Add a reference at the top of your code file

using System.Configuration;

// Within the code body set your variable

string cs = ConfigurationManager.ConnectionStrings["connectionStringName"].ConnectionString;

但是sql客户端可以使用相同的连接字符串吗?我的意思是格式不重要吗?没关系。我要求您发布两个连接字符串。我相信他们是一样的。请张贴如果不同\