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::Close Method ()

Entity Framework 6.0
 

Closes the connection to the database.

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

public:
virtual void Close() override

Exception Condition
InvalidOperationException

An error occurred when closing the connection.

Return to top
Show: