When creating and ADO.NET Entity Connection String you get something like
We can use the following code to extract connection string only from entity framework connection string without metadata information.
string connectionString = new MREntities().Database.Connection.ConnectionString