Gets the connection used by the object context.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
This property returns the connection object that was passed into the constructor or created during construction. The connection’s ownership is determined by the constructors used.
This example creates an EntityConnection object that is passed into the constructor of a long-running ObjectContext. The connection is opened manually. Both the EntityConnection object and the ObjectContext object are disposed of manually.
Available since 3.5