Compartilhar via


EntityProjectionExpression Construtores

Definição

Sobrecargas

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

Cria uma nova instância da classe EntityProjectionExpression.

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

Cria uma nova instância da classe EntityProjectionExpression.

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

Cria uma nova instância da classe EntityProjectionExpression.

EntityProjectionExpression(IEntityType, IDictionary<IProperty,ColumnExpression>)

Origem:
EntityProjectionExpression.cs
Origem:
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))

Parâmetros

entityType
IEntityType
propertyExpressions
IDictionary<IProperty,ColumnExpression>

Aplica-se a

EntityProjectionExpression(IEntityType, TableExpressionBase, Boolean)

Origem:
EntityProjectionExpression.cs
Origem:
EntityProjectionExpression.cs
Origem:
EntityProjectionExpression.cs
Origem:
EntityProjectionExpression.cs

Cuidado

Use the constructor which takes populated column expressions map.

Cria uma nova instância da 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)

Parâmetros

entityType
IEntityType

O tipo de entidade a ser moldado.

innerTable
TableExpressionBase

A tabela da qual as colunas de entidade estão sendo projetadas.

nullable
Boolean

Um valor bool que indica se essa instância de entidade pode ser nula.

Atributos

Aplica-se a

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

Origem:
EntityProjectionExpression.cs

Cria uma nova instância da 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)

Parâmetros

entityType
IEntityType

O tipo de entidade a ser moldado.

propertyExpressionMap
IDictionary<IProperty,ColumnExpression>

Um dicionário de expressões de coluna correspondentes às propriedades do tipo de entidade.

discriminatorExpression
SqlExpression

Um SqlExpression para gerar discriminador para cada tipo de entidade concreto na hierarquia.

Aplica-se a

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

Origem:
EntityProjectionExpression.cs
Origem:
EntityProjectionExpression.cs

Cria uma nova instância da 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)

Parâmetros

entityType
IEntityType

Um tipo de entidade para formatar.

propertyExpressionMap
IReadOnlyDictionary<IProperty,ColumnExpression>

Um dicionário de expressões de coluna correspondentes às propriedades do tipo de entidade.

discriminatorExpression
SqlExpression

Um SqlExpression para gerar discriminador para cada tipo de entidade concreto na hierarquia.

Aplica-se a