Share via


EntityProjectionExpression Constructors

Definition

Overloads

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)
EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)
Obsolete.

Creates a new instance of the EntityProjectionExpression class.

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

Creates a new instance of the EntityProjectionExpression class.

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

Creates a new instance of the EntityProjectionExpression class.

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))

Parameters

entityType
IEntityType
propertyExpressions
IDictionary<IProperty,ColumnExpression>

Applies to

EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)

Caution

Use the constructor which takes populated column expressions map.

Creates a new instance of the EntityProjectionExpression class.

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)

Parameters

entityType
IEntityType

The entity type to shape.

innerTable
TableExpressionBase

The table from which entity columns are being projected out.

nullable
Boolean

A bool value indicating whether this entity instance can be null.

Attributes

Applies to

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

Creates a new instance of the EntityProjectionExpression class.

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)

Parameters

entityType
IEntityType

The entity type to shape.

propertyExpressionMap
IDictionary<IProperty,ColumnExpression>

A dictionary of column expressions corresponding to properties of the entity type.

discriminatorExpression
SqlExpression

A SqlExpression to generate discriminator for each concrete entity type in hierarchy.

Applies to

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

Creates a new instance of the EntityProjectionExpression class.

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)

Parameters

entityType
IEntityType

An entity type to shape.

propertyExpressionMap
IReadOnlyDictionary<IProperty,ColumnExpression>

A dictionary of column expressions corresponding to properties of the entity type.

discriminatorExpression
SqlExpression

A SqlExpression to generate discriminator for each concrete entity type in hierarchy.

Applies to