IMigrationsDatabaseLock.ReacquireIfNeeded 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果目前的資料庫已經被釋放,則會再次取得獨佔鎖。
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
參數
- connectionReopened
- Boolean
顯示連線是否已重新開啟。
傳回
一個可以用來解開鎖的物品。