<PackageReference Include="Microsoft.Data.SqlClient" Version="7.1.0-preview3.26238.4" />

Microsoft.Data.ProviderBase.DbConnectionInternal

abstract class DbConnectionInternal
public virtual ConnectionCapabilities Capabilities { get; }

protected bool EnlistedTransactionDisposed { get; }

Get boolean value that indicates whether the enlisted transaction has been disposed.

protected virtual bool ReadyToPrepareTransaction { get; }

public abstract string ServerVersion { get; }

public virtual string ServerVersionNormalized { get; }

public bool ShouldHidePassword { get; }

public ConnectionState State { get; }

protected virtual bool UnbindOnTransactionCompletion { get; }

Get boolean that specifies whether an enlisted transaction can be unbound from the connection when that transaction completes.

protected abstract void Activate(Transaction transaction)

Activates the connection, preparing it for active use. An activated connection has an owner and is checked out from the connection pool (if pooling is enabled).

public virtual void ChangeDatabase(string value)

protected virtual void CleanupTransactionOnCompletion(Transaction transaction)

Cleanup connection's transaction-specific structures (currently used by Delegated transaction). This is a separate method because cleanup can be triggered in multiple ways for a delegated transaction.

protected abstract void Deactivate()

Deactivates the connection, cleaning up any state as necessary. A deactivated connection is one that is no longer in active use and does not have an owner. A deactivated connection may be open (connected to a server) and is checked into the connection pool (if pooling is enabled).

public virtual void Dispose()

public abstract void EnlistTransaction(Transaction transaction)

protected virtual bool ObtainAdditionalLocksForClose()

protected virtual void PrepareForCloseConnection()

protected virtual void ReleaseAdditionalLocksForClose(bool lockToken)

protected bool TryOpenConnectionInternal(DbConnection outerConnection, SqlConnectionFactory connectionFactory, TaskCompletionSource<DbConnectionInternal> retry, bool forceNewConnection, TimeoutTimer timeout)

protected void UnDoomThisConnection()

Reset connection doomed status so it can be re-connected and pooled.