Duration (Pacific Standard Time):
To (Pacific Standard Time):
Impact:
  • None
User Action:
  • None

DataContext.Connection Property

 

Gets the connection used by the framework.

Namespace:   System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Public ReadOnly Property Connection As DbConnection

Property Value

Type: System.Data.Common.DbConnection

The connection used by the framework.

You can use this property to interoperate with relational ADO.NET code.

The returned connection will be closed unless it has been explicitly opened by the user.

.NET Framework
Available since 3.5
Return to top