ObjectContext.Connection Property

 

Gets the connection used by the object context.

Namespace:   System.Data.Entity.Core.Objects
Assembly:  EntityFramework (in EntityFramework.dll)

public virtual DbConnection Connection { get; }

Property Value

Type: System.Data.Common.DbConnection

A DbConnection object that is the connection.