語言

IMigrator.HasPendingModelChanges 方法

定義

若模型有待執行的變更,則回傳 true 。

[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")]
public bool HasPendingModelChanges();
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")>]
abstract member HasPendingModelChanges : unit -> bool
Public Function HasPendingModelChanges () As Boolean

傳回

true 如果資料庫模型有待處理的變更,且需要新增遷移。

屬性

適用於