IDependentKeyValueFactory<TKey>.TryCreateFromCurrentValues Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Tente de créer une clé instance à l’aide de valeurs de clé étrangère à partir du donnéIUpdateEntry.
public bool TryCreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, out TKey key);
public bool TryCreateFromCurrentValues(Microsoft.EntityFrameworkCore.Update.IUpdateEntry entry, out TKey? key);
abstract member TryCreateFromCurrentValues : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * 'Key -> bool
Public Function TryCreateFromCurrentValues (entry As IUpdateEntry, ByRef key As TKey) As Boolean
Paramètres
- entry
- IUpdateEntry
Entrée qui suit une entité instance.
- key
- TKey
Clé instance.
Retours
truesi la clé instance a été créée ; false sinon.