Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CreateConnection Method

EntityProviderFactory.CreateConnection Method

Returns a new instance of the provider's class that implements the EntityConnection class.

Namespace:  System.Data.EntityClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public override DbConnection CreateConnection()

Return Value

Type: System.Data.Common.DbConnection
A new instance of EntityConnection.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft