Langue

EntityShaperExpression.GenerateMaterializationCondition Méthode

Définition

Crée une expression permettant de déterminer le type d’entité Func<T,TResult> à matérialiser.

protected virtual System.Linq.Expressions.LambdaExpression GenerateMaterializationCondition(Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, bool nullable);
abstract member GenerateMaterializationCondition : Microsoft.EntityFrameworkCore.Metadata.IEntityType * bool -> System.Linq.Expressions.LambdaExpression
override this.GenerateMaterializationCondition : Microsoft.EntityFrameworkCore.Metadata.IEntityType * bool -> System.Linq.Expressions.LambdaExpression
Protected Overridable Function GenerateMaterializationCondition (entityType As IEntityType, nullable As Boolean) As LambdaExpression

Paramètres

entityType
IEntityType

Type d’entité pour lequel créer une condition de matérialisation.

nullable
Boolean

Indique si cette instance d’entité peut être null.

Retours

Expression représentant la condition de Func<T,TResult> materilisation pour le type d’entité.

S’applique à