語言

RelationalEntityShaperExpression.GenerateMaterializationCondition 方法

定義

建立一個表達式 Func<T,TResult> 來決定要實現哪種實體類型。

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

參數

entityType
IEntityType

建立實體類型以建立物質化條件。

nullable
Boolean

這個實體實例是否可以是空的。

傳回

表示實體類型的物質化條件的表達 Func<T,TResult> 式。

適用於