Entity Framework Connection Use As SqlConnection
Posted on Thursday, November 13, 2014
|
No Comments
public static string GetConnectionString()
{
string entityConnectionString = ConfigurationManager.ConnectionStrings["ERPEntities"].ConnectionString;
string providerConnectionString = new EntityConnectionStringBuilder(entityConnectionString).ProviderConnectionString;
return providerConnectionString;
}