語言

IUpdateAdapter.CreateEntry Method

Definition

Overloads

Name Description
CreateEntry(IDictionary<String,Object>, IEntityType)
Obsolete.

Creates a new entry with the given property values for the given entity type.

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

Creates a new entry with the given property values for the given entity type.

CreateEntry(IDictionary<String,Object>, IEntityType)

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

Caution

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

Creates a new entry with the given property values for the given entity type.

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

Parameters

values
IDictionary<String,Object>

A dictionary of property names to values.

entityType
IEntityType

The entity type.

Returns

The created entry.

Attributes

Applies to

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

Source:
IUpdateAdapter.cs

Creates a new entry with the given property values for the given entity type.

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

Parameters

values
IReadOnlyDictionary<IProperty,Object>

A dictionary of properties to values.

entityType
IEntityType

The entity type.

Returns

The created entry.

Remarks

Keying the values by IProperty rather than by name allows distinct values to be supplied for multiple complex properties that share the same complex type. Complex collections are not supported by this overload.

Applies to