EntityConnection.Close Method ()

 

Closes the connection to the database.

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

public override void Close()

Exception Condition
InvalidOperationException

An error occurred when closing the connection.