EntityProjectionExpression 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)
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)
注意
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)
创建 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)
创建 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 ,用于为层次结构中的每个具体实体类型生成鉴别器。