语言

IUpdateAdapter.CreateEntry 方法

定义

重载

名称 说明
CreateEntry(IDictionary<String,Object>, IEntityType)
已过时.

为给定实体类型创建具有给定属性值的新条目。

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

为给定实体类型创建具有给定属性值的新条目。

CreateEntry(IDictionary<String,Object>, IEntityType)

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

注意

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);
[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

参数

values
IDictionary<String,Object>

属性名称到值的字典。

entityType
IEntityType

实体类型。

返回

创建的条目。

特性

适用于

CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType)

Source:
IUpdateAdapter.cs

为给定实体类型创建具有给定属性值的新条目。

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

参数

values
IReadOnlyDictionary<IProperty,Object>

属性到值的字典。

entityType
IEntityType

实体类型。

返回

创建的条目。

注解

通过按 IProperty 名称键键输入值,可以为共享同一复杂类型的多个复杂属性提供不同的值。 此重载不支持复杂的集合。

适用于