Język

IMigrator.HasPendingModelChanges Metoda

Definicja

Zwraca wartość true , jeśli model ma oczekujące zmiany do zastosowania.

[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

Zwraca

true jeśli model bazy danych ma oczekujące zmiany i należy dodać nową migrację.

Atrybuty

Dotyczy