Share via


ObjectContext.Connection Property

Definition

Gets the connection used by the object context.

public virtual System.Data.Common.DbConnection Connection { get; }
member this.Connection : System.Data.Common.DbConnection
Public Overridable ReadOnly Property Connection As DbConnection

Property Value

A DbConnection object that is the connection.

Exceptions

When the ObjectContext instance has been disposed.

Applies to