Condividi tramite


RelationalDatabaseFacadeExtensions.HasPendingModelChanges Metodo

Definizione

Restituisce true se il modello ha modifiche in sospeso da applicare.

[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

Parametri

databaseFacade
DatabaseFacade

Facciata da Database.

Restituisce

true se il modello di database ha modifiche in sospeso e deve essere aggiunta una nuova migrazione.

Attributi

Si applica a