EntityLoadInfo 构造函数

定义

重载

EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>)

初始化 EntityLoadInfo 结构的新实例。

EntityLoadInfo(MaterializationContext, Func<MaterializationContext,Object>, Dictionary<Type,Int32[]>)

初始化 EntityLoadInfo 结构的新实例。

EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>, Dictionary<Type,Int32[]>)
已过时.

初始化 EntityLoadInfo 结构的新实例。

EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>)

初始化 EntityLoadInfo 结构的新实例。

public EntityLoadInfo (Microsoft.EntityFrameworkCore.Storage.ValueBuffer valueBuffer, Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer,object> materializer);
new Microsoft.EntityFrameworkCore.Query.EntityLoadInfo : Microsoft.EntityFrameworkCore.Storage.ValueBuffer * Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer, obj> -> Microsoft.EntityFrameworkCore.Query.EntityLoadInfo
Public Sub New (valueBuffer As ValueBuffer, materializer As Func(Of ValueBuffer, Object))

参数

valueBuffer
ValueBuffer

表示此实体的数据行。

materializer
Func<ValueBuffer,Object>

将数据具体化为实体实例的方法。

适用于

EntityLoadInfo(MaterializationContext, Func<MaterializationContext,Object>, Dictionary<Type,Int32[]>)

初始化 EntityLoadInfo 结构的新实例。

public EntityLoadInfo (in Microsoft.EntityFrameworkCore.Storage.MaterializationContext materializationContext, Func<Microsoft.EntityFrameworkCore.Storage.MaterializationContext,object> materializer, System.Collections.Generic.Dictionary<Type,int[]> typeIndexMap = default);
new Microsoft.EntityFrameworkCore.Query.EntityLoadInfo : MaterializationContext * Func<Microsoft.EntityFrameworkCore.Storage.MaterializationContext, obj> * System.Collections.Generic.Dictionary<Type, int[]> -> Microsoft.EntityFrameworkCore.Query.EntityLoadInfo
Public Sub New (ByRef materializationContext As MaterializationContext, materializer As Func(Of MaterializationContext, Object), Optional typeIndexMap As Dictionary(Of Type, Integer()) = Nothing)

参数

materializationContext
MaterializationContext

用于创建实体的当前 MaterializationContext

materializer
Func<MaterializationContext,Object>

将数据具体化为实体实例的方法。

typeIndexMap
Dictionary<Type,Int32[]>

包含从属性索引到 ValueBuffer 中的值的映射的字典。

适用于

EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>, Dictionary<Type,Int32[]>)

注意

Use the constructor that also takes a MaterializationContext.

初始化 EntityLoadInfo 结构的新实例。

public EntityLoadInfo (Microsoft.EntityFrameworkCore.Storage.ValueBuffer valueBuffer, Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer,object> materializer, System.Collections.Generic.Dictionary<Type,int[]> typeIndexMap = default);
[System.Obsolete("Use the constructor that also takes a MaterializationContext.")]
public EntityLoadInfo (Microsoft.EntityFrameworkCore.Storage.ValueBuffer valueBuffer, Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer,object> materializer, System.Collections.Generic.Dictionary<Type,int[]> typeIndexMap = default);
new Microsoft.EntityFrameworkCore.Query.EntityLoadInfo : Microsoft.EntityFrameworkCore.Storage.ValueBuffer * Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer, obj> * System.Collections.Generic.Dictionary<Type, int[]> -> Microsoft.EntityFrameworkCore.Query.EntityLoadInfo
[<System.Obsolete("Use the constructor that also takes a MaterializationContext.")>]
new Microsoft.EntityFrameworkCore.Query.EntityLoadInfo : Microsoft.EntityFrameworkCore.Storage.ValueBuffer * Func<Microsoft.EntityFrameworkCore.Storage.ValueBuffer, obj> * System.Collections.Generic.Dictionary<Type, int[]> -> Microsoft.EntityFrameworkCore.Query.EntityLoadInfo
Public Sub New (valueBuffer As ValueBuffer, materializer As Func(Of ValueBuffer, Object), Optional typeIndexMap As Dictionary(Of Type, Integer()) = Nothing)

参数

valueBuffer
ValueBuffer

表示此实体的数据行。

materializer
Func<ValueBuffer,Object>

将数据具体化为实体实例的方法。

typeIndexMap
Dictionary<Type,Int32[]>

包含从属性索引到 ValueBuffer 中的值的映射的字典。

属性

适用于