Lenguaje

IUpdateAdapter.CreateEntry Método

Definición

Sobrecargas

Nombre Description
CreateEntry(IDictionary<String,Object>, IEntityType)
Obsoletos.

Crea una nueva entrada con los valores de propiedad especificados para el tipo de entidad especificado.

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

Crea una nueva entrada con los valores de propiedad especificados para el tipo de entidad especificado.

CreateEntry(IDictionary<String,Object>, IEntityType)

Source:
IUpdateAdapter.cs
Source:
IUpdateAdapter.cs
Source:
IUpdateAdapter.cs
Source:
IUpdateAdapter.cs
Source:
IUpdateAdapter.cs

Precaución

Use the overload that accepts a dictionary keyed by IProperty instead.

Crea una nueva entrada con los valores de propiedad especificados para el tipo de entidad especificado.

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

Parámetros

values
IDictionary<String,Object>

Diccionario de nombres de propiedad para valores.

entityType
IEntityType

El tipo de entidad.

Devoluciones

Entrada creada.

Atributos

Se aplica a

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

Source:
IUpdateAdapter.cs

Crea una nueva entrada con los valores de propiedad especificados para el tipo de entidad especificado.

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

Parámetros

values
IReadOnlyDictionary<IProperty,Object>

Diccionario de propiedades para valores.

entityType
IEntityType

El tipo de entidad.

Devoluciones

Entrada creada.

Comentarios

La clave de los valores en IProperty lugar de por nombre permite proporcionar valores distintos para varias propiedades complejas que comparten el mismo tipo complejo. Esta sobrecarga no admite colecciones complejas.

Se aplica a