RelationalEntityShaperExpression 构造函数

定义

重载

RelationalEntityShaperExpression(IEntityType, Expression, Boolean)

创建 RelationalEntityShaperExpression 类的新实例。

RelationalEntityShaperExpression(IEntityType, Expression, Boolean, LambdaExpression)

创建 RelationalEntityShaperExpression 类的新实例。

RelationalEntityShaperExpression(IEntityType, Expression, Boolean)

Source:
RelationalEntityShaperExpression.cs
Source:
RelationalEntityShaperExpression.cs
Source:
RelationalEntityShaperExpression.cs

创建 RelationalEntityShaperExpression 类的新实例。

public RelationalEntityShaperExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Linq.Expressions.Expression valueBufferExpression, bool nullable);
new Microsoft.EntityFrameworkCore.Query.RelationalEntityShaperExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Linq.Expressions.Expression * bool -> Microsoft.EntityFrameworkCore.Query.RelationalEntityShaperExpression
Public Sub New (entityType As IEntityType, valueBufferExpression As Expression, nullable As Boolean)

参数

entityType
IEntityType

要形状的实体类型。

valueBufferExpression
Expression

ValueBuffer 的表达式,用于获取实体属性的值。

nullable
Boolean

一个布尔值,该值指示此实体实例是否可以为 null。

适用于

RelationalEntityShaperExpression(IEntityType, Expression, Boolean, LambdaExpression)

Source:
RelationalEntityShaperExpression.cs
Source:
RelationalEntityShaperExpression.cs
Source:
RelationalEntityShaperExpression.cs

创建 RelationalEntityShaperExpression 类的新实例。

protected RelationalEntityShaperExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Linq.Expressions.Expression valueBufferExpression, bool nullable, System.Linq.Expressions.LambdaExpression materializationCondition);
protected RelationalEntityShaperExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Linq.Expressions.Expression valueBufferExpression, bool nullable, System.Linq.Expressions.LambdaExpression? materializationCondition);
new Microsoft.EntityFrameworkCore.Query.RelationalEntityShaperExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Linq.Expressions.Expression * bool * System.Linq.Expressions.LambdaExpression -> Microsoft.EntityFrameworkCore.Query.RelationalEntityShaperExpression
Protected Sub New (entityType As IEntityType, valueBufferExpression As Expression, nullable As Boolean, materializationCondition As LambdaExpression)

参数

entityType
IEntityType

要形状的实体类型。

valueBufferExpression
Expression

ValueBuffer 的表达式,用于获取实体属性的值。

nullable
Boolean

此实体实例是否可以为 null。

materializationCondition
LambdaExpression

的表达式 Func<T,TResult> ,用于确定要具体化哪个实体类型。

适用于