Langue

MigrationsSqlGenerator.TryGetVersion(IModel, String) Méthode

Définition

Obtient la version du produit utilisée pour générer la migration actuelle. Les fournisseurs peuvent l’utiliser pour préserver la compatibilité avec les migrations générées à l’aide des versions précédentes.

protected virtual bool TryGetVersion(Microsoft.EntityFrameworkCore.Metadata.IModel? model, out string? version);
protected virtual bool TryGetVersion(Microsoft.EntityFrameworkCore.Metadata.IModel model, out string version);
abstract member TryGetVersion : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
override this.TryGetVersion : Microsoft.EntityFrameworkCore.Metadata.IModel * string -> bool
Protected Overridable Function TryGetVersion (model As IModel, ByRef version As String) As Boolean

Paramètres

model
IModel

Modèle cible.

version
String

La version.

Retours

true si la version peut être récupérée.

S’applique à