Sprache

IMigrationsDatabaseLock.ReacquireIfNeeded Methode

Definition

Erwirbt erneut eine exklusive Sperre für die Datenbank, wenn das aktuelle bereits freigegeben wurde.

public virtual Microsoft.EntityFrameworkCore.Migrations.IMigrationsDatabaseLock ReacquireIfNeeded(bool connectionReopened, bool? transactionRestarted);
abstract member ReacquireIfNeeded : bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.IMigrationsDatabaseLock
override this.ReacquireIfNeeded : bool * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.IMigrationsDatabaseLock
Public Overridable Function ReacquireIfNeeded (connectionReopened As Boolean, transactionRestarted As Nullable(Of Boolean)) As IMigrationsDatabaseLock

Parameter

connectionReopened
Boolean

Gibt an, ob die Verbindung erneut geöffnet wurde.

transactionRestarted
Nullable<Boolean>

Gibt an, ob die Transaktion neu gestartet wurde. null wenn keine aktuelle Transaktion vorhanden ist.

Gibt zurück

Ein Objekt, das zum Freigeben der Sperre verworfen werden kann.

Gilt für: