EntityConnection.Open Method ()
Establishes a connection to the data source by calling the underlying data provider's Open method.
Assembly: EntityFramework (in EntityFramework.dll)
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. |