Table of Contents

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 ValueBuffer

The ValueBuffer to use to materialize an entity.

context DbContext

The current DbContext instance being used.

Fields

GetValueBufferMethod

The MethodInfo for the ValueBuffer get method.

public static readonly MethodInfo GetValueBufferMethod

Field Value

MethodInfo

Properties

Context

The current DbContext instance being used.

public DbContext Context { get; }

Property Value

DbContext

ValueBuffer

The ValueBuffer to use to materialize an entity.

public ValueBuffer ValueBuffer { get; }

Property Value

ValueBuffer