Entity Framework Connection Use As SqlConnection
Thursday, November 13, 2014 Category : ASP.NET, C-sharp.NET 0
public static string GetConnectionString()
{
string entityConnectionString = ConfigurationManager.ConnectionStrings["ERPEntities"].ConnectionString;
string providerConnectionString = new EntityConnectionStringBuilder(entityConnectionString).ProviderConnectionString;
return providerConnectionString;
}