EntityProjectionExpression 构造函数

定义

重载

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)
EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)
已过时.

创建 EntityProjectionExpression 类的新实例。

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>, SqlExpression)

创建 EntityProjectionExpression 类的新实例。

EntityProjectionExpression(IEntityType, IReadOnlyDictionary<IProperty,ColumnExpression>, SqlExpression)

创建 EntityProjectionExpression 类的新实例。

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)

Source:
EntityProjectionExpression.cs
Source:
EntityProjectionExpression.cs
public EntityProjectionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> propertyExpressions);
new Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> -> Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression
Public Sub New (entityType As IEntityType, propertyExpressions As IDictionary(Of IProperty, ColumnExpression))

参数

entityType
IEntityType
propertyExpressions
IDictionary<IProperty,ColumnExpression>

适用于

EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)

Source:
EntityProjectionExpression.cs
Source:
EntityProjectionExpression.cs
Source:
EntityProjectionExpression.cs
Source:
EntityProjectionExpression.cs

注意

Use the constructor which takes populated column expressions map.

创建 EntityProjectionExpression 类的新实例。

public EntityProjectionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase innerTable, bool nullable);
[System.Obsolete("Use the constructor which takes populated column expressions map.", true)]
public EntityProjectionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase innerTable, bool nullable);
new Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase * bool -> Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression
[<System.Obsolete("Use the constructor which takes populated column expressions map.", true)>]
new Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Query.SqlExpressions.TableExpressionBase * bool -> Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression
Public Sub New (entityType As IEntityType, innerTable As TableExpressionBase, nullable As Boolean)

参数

entityType
IEntityType

要形状的实体类型。

innerTable
TableExpressionBase

从中投影实体列的表。

nullable
Boolean

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

属性

适用于

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>, SqlExpression)

Source:
EntityProjectionExpression.cs

创建 EntityProjectionExpression 类的新实例。

public EntityProjectionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> propertyExpressionMap, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression discriminatorExpression = default);
new Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression
Public Sub New (entityType As IEntityType, propertyExpressionMap As IDictionary(Of IProperty, ColumnExpression), Optional discriminatorExpression As SqlExpression = Nothing)

参数

entityType
IEntityType

要形状的实体类型。

propertyExpressionMap
IDictionary<IProperty,ColumnExpression>

对应于实体类型属性的列表达式的字典。

discriminatorExpression
SqlExpression

一个 SqlExpression ,用于为层次结构中的每个具体实体类型生成鉴别器。

适用于

EntityProjectionExpression(IEntityType, IReadOnlyDictionary<IProperty,ColumnExpression>, SqlExpression)

Source:
EntityProjectionExpression.cs
Source:
EntityProjectionExpression.cs

创建 EntityProjectionExpression 类的新实例。

public EntityProjectionExpression (Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, System.Collections.Generic.IReadOnlyDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty,Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> propertyExpressionMap, Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression? discriminatorExpression = default);
new Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression : Microsoft.EntityFrameworkCore.Metadata.IEntityType * System.Collections.Generic.IReadOnlyDictionary<Microsoft.EntityFrameworkCore.Metadata.IProperty, Microsoft.EntityFrameworkCore.Query.SqlExpressions.ColumnExpression> * Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlExpression -> Microsoft.EntityFrameworkCore.Query.EntityProjectionExpression
Public Sub New (entityType As IEntityType, propertyExpressionMap As IReadOnlyDictionary(Of IProperty, ColumnExpression), Optional discriminatorExpression As SqlExpression = Nothing)

参数

entityType
IEntityType

要形状的实体类型。

propertyExpressionMap
IReadOnlyDictionary<IProperty,ColumnExpression>

对应于实体类型属性的列表达式的字典。

discriminatorExpression
SqlExpression

一个 SqlExpression ,用于为层次结构中的每个具体实体类型生成鉴别器。

适用于