IUpdateAdapter.CreateEntry 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| CreateEntry(IDictionary<String,Object>, IEntityType) |
已淘汰.
建立一個新條目,包含給定的屬性值,針對該實體類型。 |
| CreateEntry(IReadOnlyDictionary<IProperty,Object>, IEntityType) |
建立一個新條目,包含給定的屬性值,針對該實體類型。 |
CreateEntry(IDictionary<String,Object>, IEntityType)
警告
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)
建立一個新條目,包含給定的屬性值,針對該實體類型。
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 名稱而非名稱來鍵合值,可以為多個共享相同複雜型態的複雜屬性提供不同的值。 複雜集合不支援此過載。