SelectExpression.AddToProjection 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| AddToProjection(AliasExpression) |
AliasExpression将 添加到投影。 |
| AddToProjection(ColumnExpression) |
将 ColumnExpression 添加到投影。 |
| AddToProjection(Expression) |
向投影添加表达式。 |
| AddToProjection(IProperty, IQuerySource) |
向投影添加列。 |
| AddToProjection(Expression, Boolean) |
向投影添加表达式。 |
| AddToProjection(String, IProperty, IQuerySource) |
向投影添加列。 |
AddToProjection(AliasExpression)
AliasExpression将 添加到投影。
public virtual int AddToProjection(Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression aliasExpression);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.AliasExpression -> int
Public Overridable Function AddToProjection (aliasExpression As AliasExpression) As Integer
参数
- aliasExpression
- AliasExpression
别名表达式。
返回
中 Projection添加的表达式的相应索引。
适用于
AddToProjection(ColumnExpression)
将 ColumnExpression 添加到投影。
public virtual int AddToProjection(Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression columnExpression);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Query.Expressions.ColumnExpression -> int
Public Overridable Function AddToProjection (columnExpression As ColumnExpression) As Integer
参数
- columnExpression
- ColumnExpression
列表达式。
返回
中 Projection添加的表达式的相应索引。
适用于
AddToProjection(Expression)
向投影添加表达式。
public virtual int AddToProjection(System.Linq.Expressions.Expression expression);
abstract member AddToProjection : System.Linq.Expressions.Expression -> int
override this.AddToProjection : System.Linq.Expressions.Expression -> int
Public Overridable Function AddToProjection (expression As Expression) As Integer
参数
- expression
- Expression
表达式。
返回
中 Projection添加的表达式的相应索引。
适用于
AddToProjection(IProperty, IQuerySource)
- Source:
- SelectExpression.cs
- Source:
- SelectExpression.cs
向投影添加列。
public virtual int AddToProjection(Microsoft.EntityFrameworkCore.Metadata.IProperty property, Remotion.Linq.Clauses.IQuerySource querySource);
abstract member AddToProjection : Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
override this.AddToProjection : Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
Public Overridable Function AddToProjection (property As IProperty, querySource As IQuerySource) As Integer
参数
- property
- IProperty
相应的 EF 属性。
- querySource
- Remotion.Linq.Clauses.IQuerySource
原始查询源。
返回
中 Projection添加的表达式的相应索引。
适用于
AddToProjection(Expression, Boolean)
- Source:
- SelectExpression.cs
- Source:
- SelectExpression.cs
向投影添加表达式。
public virtual int AddToProjection(System.Linq.Expressions.Expression expression, bool resetProjectStar);
public virtual int AddToProjection(System.Linq.Expressions.Expression expression, bool resetProjectStar = true);
abstract member AddToProjection : System.Linq.Expressions.Expression * bool -> int
override this.AddToProjection : System.Linq.Expressions.Expression * bool -> int
Public Overridable Function AddToProjection (expression As Expression, resetProjectStar As Boolean) As Integer
Public Overridable Function AddToProjection (expression As Expression, Optional resetProjectStar As Boolean = true) As Integer
参数
- expression
- Expression
表达式。
- resetProjectStar
- Boolean
若要重置 的值, IsProjectStar则为 true。
返回
中 Projection添加的表达式的相应索引。
适用于
AddToProjection(String, IProperty, IQuerySource)
向投影添加列。
public virtual int AddToProjection(string column, Microsoft.EntityFrameworkCore.Metadata.IProperty property, Remotion.Linq.Clauses.IQuerySource querySource);
abstract member AddToProjection : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
override this.AddToProjection : string * Microsoft.EntityFrameworkCore.Metadata.IProperty * Remotion.Linq.Clauses.IQuerySource -> int
Public Overridable Function AddToProjection (column As String, property As IProperty, querySource As IQuerySource) As Integer
参数
- column
- String
列名称。
- property
- IProperty
相应的 EF 属性。
- querySource
- Remotion.Linq.Clauses.IQuerySource
原始查询源。
返回
中 Projection添加的表达式的相应索引。