Struct MaterializationContext
- Namespace
- Microsoft.EntityFrameworkCore.Storage
- Assembly
- Microsoft.EntityFrameworkCore.dll
Parameter object containing context needed for materialization of an entity.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public readonly struct MaterializationContext
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
MaterializationContext(in ValueBuffer, DbContext)
Creates a new MaterializationContext instance.
public MaterializationContext(in ValueBuffer valueBuffer, DbContext context)
Parameters
valueBuffer
ValueBufferThe ValueBuffer to use to materialize an entity.
context
DbContextThe current DbContext instance being used.
Fields
GetValueBufferMethod
The MethodInfo for the ValueBuffer get method.
public static readonly MethodInfo GetValueBufferMethod
Field Value
Properties
Context
The current DbContext instance being used.
public DbContext Context { get; }
Property Value
ValueBuffer
The ValueBuffer to use to materialize an entity.
public ValueBuffer ValueBuffer { get; }