Condividi tramite


EntityProjectionExpression Costruttori

Definizione

Overload

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

Crea una nuova istanza della classe EntityProjectionExpression.

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

Crea una nuova istanza della classe EntityProjectionExpression.

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

Crea una nuova istanza della classe EntityProjectionExpression.

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

Parametri

entityType
IEntityType
propertyExpressions
IDictionary<IProperty,ColumnExpression>

Si applica a

EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)

Attenzione

Use the constructor which takes populated column expressions map.

Crea una nuova istanza della classe 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)

Parametri

entityType
IEntityType

Tipo di entità da formare.

innerTable
TableExpressionBase

Tabella da cui vengono proiettate le colonne di entità.

nullable
Boolean

Valore bool che indica se questa istanza di entità può essere null.

Attributi

Si applica a

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

Crea una nuova istanza della classe 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)

Parametri

entityType
IEntityType

Tipo di entità da formare.

propertyExpressionMap
IDictionary<IProperty,ColumnExpression>

Dizionario delle espressioni di colonna corrispondenti alle proprietà del tipo di entità.

discriminatorExpression
SqlExpression

Oggetto SqlExpression per generare la discriminazione per ogni tipo di entità concreta nella gerarchia.

Si applica a

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

Crea una nuova istanza della classe 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)

Parametri

entityType
IEntityType

Tipo di entità da formare.

propertyExpressionMap
IReadOnlyDictionary<IProperty,ColumnExpression>

Dizionario delle espressioni di colonna corrispondenti alle proprietà del tipo di entità.

discriminatorExpression
SqlExpression

Oggetto SqlExpression per generare la discriminazione per ogni tipo di entità concreta nella gerarchia.

Si applica a