Thursday, March 10, 2011

Getting SqlConnection from Entity Connection

        Hi all ,

             This is the code for accessing Entity connections string to sql connection string…      

 

 

EntityConnection entityConnection = (EntityConnection)context.Connection;
SqlConnection sqlConnection = (SqlConnection)entityConnection.StoreConnection;