src/Shared/EntityFramework/Internal/InternalConnection.cs
// <summary>
// Called after the connection is initialized for the first time.
// </summary>
Called after the connection is initialized for the first time.
Called after the connection is initialized for the first time .
protected void OnConnectionInitialized()
        {
            Debug.Assert(UnderlyingConnection != null);
            _originalConnectionString = GetStoreConnectionString(UnderlyingConnection);
            try
            {
                _originalDatabaseName = UnderlyingConnection is EntityConnection
                    ? UnderlyingConnection.Database
                    : DbInterception.Dispatch.Connection.GetDatabase(UnderlyingConnection, InterceptionContext);
            }
            catch (NotImplementedException)
            {
            }
            try
            {
                _originalDataSource = UnderlyingConnection is EntityConnection
                    ? UnderlyingConnection.DataSource
                    : DbInterception.Dispatch.Connection.GetDataSource(UnderlyingConnection, InterceptionContext);
            }
            catch (NotImplementedException)
            {
            }
        }
protected void OnConnectionInitialized ( ) { Debug . Assert ( UnderlyingConnection != null ) ; _originalConnectionString = GetStoreConnectionString ( UnderlyingConnection ) ; try { _originalDatabaseName = UnderlyingConnection is EntityConnection ? UnderlyingConnection . Database : DbInterception . Dispatch . Connection . GetDatabase ( UnderlyingConnection , InterceptionContext ) ; } catch ( NotImplementedException ) { } try { _originalDataSource = UnderlyingConnection is EntityConnection ? UnderlyingConnection . DataSource : DbInterception . Dispatch . Connection . GetDataSource ( UnderlyingConnection , InterceptionContext ) ; } catch ( NotImplementedException ) { } }
Called after the connection is initialized for the first time.
Called after the connection is initialized for the first time .