src/Shared/EntityFramework/Internal/LazyInternalConnection.cs
// <summary>
// Disposes the underlying DbConnection.
// Note that dispose actually puts the LazyInternalConnection back to its initial state such that
// it can be used again.
// </summary>
Disposes the underlying DbConnection.
Note that dispose actually puts the LazyInternalConnection back to its initial state such that
it can be used again.
Disposes the underlying DbConnection . Note that dispose actually puts the LazyInternalConnection back to its initial state such that it can be used again .
public override void Dispose()
        {
            if (UnderlyingConnection != null)
            {
                if (UnderlyingConnection is EntityConnection)
                {
                    UnderlyingConnection.Dispose();
                }
                else
                {
                    DbInterception.Dispatch.Connection.Dispose(UnderlyingConnection, InterceptionContext);
                }
                UnderlyingConnection = null;
            }
        }
public override void Dispose ( ) { if ( UnderlyingConnection != null ) { if ( UnderlyingConnection is EntityConnection ) { UnderlyingConnection . Dispose ( ) ; } else { DbInterception . Dispatch . Connection . Dispose ( UnderlyingConnection , InterceptionContext ) ; } UnderlyingConnection = null ; } }
Disposes the underlying DbConnection.
Disposes the underlying DbConnection .