IUpdateAdapter.CreateEntry 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.
Surcharges
| Nom | Description |
|---|---|
| CreateEntry(IDictionary<String,Object>, IEntityType) |
Obsolète.
Crée une entrée avec les valeurs de propriété données pour le type d’entité donné. |
| CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType) |
Crée une entrée avec les valeurs de propriété données pour le type d’entité donné. |
CreateEntry(IDictionary<String,Object>, IEntityType)
- Source:
- IUpdateAdapter.cs
- Source:
- IUpdateAdapter.cs
- Source:
- IUpdateAdapter.cs
- Source:
- IUpdateAdapter.cs
- Source:
- IUpdateAdapter.cs
Attention
Use the overload that accepts a dictionary keyed by IProperty instead.
Crée une entrée avec les valeurs de propriété données pour le type d’entité donné.
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry CreateEntry(System.Collections.Generic.IDictionary<string,object?> values, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Obsolete("Use the overload that accepts a dictionary keyed by IProperty instead.")]
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry CreateEntry(System.Collections.Generic.IDictionary<string,object?> values, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry CreateEntry(System.Collections.Generic.IDictionary<string,object> values, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member CreateEntry : System.Collections.Generic.IDictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Update.IUpdateEntry
[<System.Obsolete("Use the overload that accepts a dictionary keyed by IProperty instead.")>]
abstract member CreateEntry : System.Collections.Generic.IDictionary<string, obj> * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Update.IUpdateEntry
Public Function CreateEntry (values As IDictionary(Of String, Object), entityType As IEntityType) As IUpdateEntry
Paramètres
- values
- IDictionary<String,Object>
Dictionnaire de noms de propriétés en valeurs.
- entityType
- IEntityType
Type d’entité.
Retours
Entrée créée.
- Attributs
S’applique à
CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)
- Source:
- IUpdateAdapter.cs
Crée une entrée avec les valeurs de propriété données pour le type d’entité donné.
public Microsoft.EntityFrameworkCore.Update.IUpdateEntry CreateEntry(System.Collections.Generic.IReadOnlyDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty,object?> values, Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
abstract member CreateEntry : System.Collections.Generic.IReadOnlyDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty, obj> * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Update.IUpdateEntry
Public Function CreateEntry (values As IReadOnlyDictionary(Of IProperty, Object), entityType As IEntityType) As IUpdateEntry
Paramètres
- values
- IReadOnlyDictionary<IProperty,Object>
Dictionnaire de propriétés en valeurs.
- entityType
- IEntityType
Type d’entité.
Retours
Entrée créée.
Remarques
La clé des valeurs plutôt IProperty que par nom permet de fournir des valeurs distinctes pour plusieurs propriétés complexes qui partagent le même type complexe. Les collections complexes ne sont pas prises en charge par cette surcharge.