Share 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.

[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct MaterializationContext
public readonly struct MaterializationContext
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct MaterializationContext
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type MaterializationContext = struct
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

Name Description
MaterializationContext(ValueBuffer, DbContext)

Creates a new MaterializationContext instance.

MaterializationContext(ValueBuffer)
Obsolete.

Creates a new MaterializationContext instance.

Fields

Name Description
GetValueBufferMethod

The MethodInfo for the ValueBuffer get method.

Properties

Name Description
Context

The current DbContext instance being used.

ValueBuffer

The ValueBuffer to use to materialize an entity.

Applies to