Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

EntityConnection::Open Method ()

Entity Framework 6.0
 

Establishes a connection to the data source by calling the underlying data provider's Open method.

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

public:
virtual void Open() override

Exception Condition
InvalidOperationException

An error occurs when you open the connection, or the name of the underlying data provider is not known.

MetadataException

The inline connection string contains an invalid Metadata keyword value.

Return to top
Show: