RelationalDatabaseFacadeExtensions.HasPendingModelChanges Méthode

Définition

Retourne true si le modèle a des modifications en attente à appliquer.

[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

Paramètres

databaseFacade
DatabaseFacade

Façade de Database.

Retours

true si le modèle de base de données a des modifications en attente et qu’une nouvelle migration doit être ajoutée.

Attributs

S’applique à