Share via


RelationalDatabaseFacadeExtensions.CloseConnection(DatabaseFacade) Method

Definition

Closes the underlying DbConnection.

public static void CloseConnection (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
static member CloseConnection : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> unit
<Extension()>
Public Sub CloseConnection (databaseFacade As DatabaseFacade)

Parameters

databaseFacade
DatabaseFacade

The DatabaseFacade for the context.

Remarks

See Connections and connection strings for more information and examples.

Applies to