共用方式為


RelationalDatabaseFacadeExtensions.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 static bool HasPendingModelChanges (this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")>]
static member HasPendingModelChanges : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> bool
<Extension()>
Public Function HasPendingModelChanges (databaseFacade As DatabaseFacade) As Boolean

參數

databaseFacade
DatabaseFacade

來自 Database 的外觀。

傳回

true 如果資料庫模型有暫止的變更,而且必須新增移轉,則為 。

屬性

適用於