Delen via


MaterializationContext Struct

Definition

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
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MaterializationContext
type MaterializationContext = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type MaterializationContext = struct
Public Structure MaterializationContext
Inheritance
MaterializationContext
Attributes

Remarks

See Implementation of database providers and extensions for more information and examples.

Constructors

MaterializationContext(ValueBuffer, DbContext)

Creates a new MaterializationContext instance.

MaterializationContext(ValueBuffer)
Obsolete.

Creates a new MaterializationContext instance.

Fields

GetValueBufferMethod

The MethodInfo for the ValueBuffer get method.

Properties

Context

The current DbContext instance being used.

ValueBuffer

The ValueBuffer to use to materialize an entity.

Applies to