EntityLoadInfo Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>) |
Initializes a new instance of the EntityLoadInfo struct. |
EntityLoadInfo(MaterializationContext, Func<MaterializationContext,Object>, Dictionary<Type,Int32[]>) |
Initializes a new instance of the EntityLoadInfo struct. |
EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>, Dictionary<Type,Int32[]>) |
Obsolete.
Initializes a new instance of the EntityLoadInfo struct. |
EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>)
Initializes a new instance of the EntityLoadInfo struct.
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))
Parameters
- valueBuffer
- ValueBuffer
The row of data that represents this entity.
- materializer
- Func<ValueBuffer,Object>
The method to materialize the data into an entity instance.
Applies to
EntityLoadInfo(MaterializationContext, Func<MaterializationContext,Object>, Dictionary<Type,Int32[]>)
- Source:
- EntityLoadInfo.cs
- Source:
- EntityLoadInfo.cs
Initializes a new instance of the EntityLoadInfo struct.
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)
Parameters
- materializationContext
- MaterializationContext
The current MaterializationContext for creating the entity.
- materializer
- Func<MaterializationContext,Object>
The method to materialize the data into an entity instance.
- typeIndexMap
- Dictionary<Type,Int32[]>
Dictionary containing mapping from property indexes to values in ValueBuffer.
Applies to
EntityLoadInfo(ValueBuffer, Func<ValueBuffer,Object>, Dictionary<Type,Int32[]>)
- Source:
- EntityLoadInfo.cs
- Source:
- EntityLoadInfo.cs
Caution
Use the constructor that also takes a MaterializationContext.
Initializes a new instance of the EntityLoadInfo struct.
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)
Parameters
- valueBuffer
- ValueBuffer
The row of data that represents this entity.
- materializer
- Func<ValueBuffer,Object>
The method to materialize the data into an entity instance.
- typeIndexMap
- Dictionary<Type,Int32[]>
Dictionary containing mapping from property indexes to values in ValueBuffer.
- Attributes
Applies to
Entity Framework