EntityConnection.Open Method ()

 

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 override void Open()

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.