Table of Contents

Struct EntityMaterializerSourceParameters

Namespace
Microsoft.EntityFrameworkCore.Query
Assembly
Microsoft.EntityFrameworkCore.dll

Parameter object for IEntityMaterializerSource.

public readonly struct EntityMaterializerSourceParameters : IEquatable<EntityMaterializerSourceParameters>
Implements
Inherited Members

Constructors

EntityMaterializerSourceParameters(ITypeBase, string, QueryTrackingBehavior?)

Parameter object for IEntityMaterializerSource.

public EntityMaterializerSourceParameters(ITypeBase StructuralType, string InstanceName, QueryTrackingBehavior? QueryTrackingBehavior)

Parameters

StructuralType ITypeBase

The entity or complex type being materialized.

InstanceName string

The name of the instance being materialized.

QueryTrackingBehavior QueryTrackingBehavior?

The query tracking behavior, or null if this materialization is not from a query.

Properties

InstanceName

The name of the instance being materialized.

public string InstanceName { get; init; }

Property Value

string

QueryTrackingBehavior

The query tracking behavior, or null if this materialization is not from a query.

public QueryTrackingBehavior? QueryTrackingBehavior { get; init; }

Property Value

QueryTrackingBehavior?

StructuralType

The entity or complex type being materialized.

public ITypeBase StructuralType { get; init; }

Property Value

ITypeBase

Methods

Deconstruct(out ITypeBase, out string, out QueryTrackingBehavior?)

public void Deconstruct(out ITypeBase StructuralType, out string InstanceName, out QueryTrackingBehavior? QueryTrackingBehavior)

Parameters

StructuralType ITypeBase
InstanceName string
QueryTrackingBehavior QueryTrackingBehavior?

Equals(EntityMaterializerSourceParameters)

public bool Equals(EntityMaterializerSourceParameters other)

Parameters

other EntityMaterializerSourceParameters

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EntityMaterializerSourceParameters, EntityMaterializerSourceParameters)

public static bool operator ==(EntityMaterializerSourceParameters left, EntityMaterializerSourceParameters right)

Parameters

left EntityMaterializerSourceParameters
right EntityMaterializerSourceParameters

Returns

bool

operator !=(EntityMaterializerSourceParameters, EntityMaterializerSourceParameters)

public static bool operator !=(EntityMaterializerSourceParameters left, EntityMaterializerSourceParameters right)

Parameters

left EntityMaterializerSourceParameters
right EntityMaterializerSourceParameters

Returns

bool