Translate

> | > Entity Framework Connection Use As SqlConnection

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;
        }

Leave a Reply

Powered by Blogger.