SelectExpression.AddToProjection 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| AddToProjection(AliasExpression) |
這會增加投影的 a AliasExpression 。 |
| AddToProjection(ColumnExpression) |
在投影中新增一個 ColumnExpression。 |
| AddToProjection(Expression) |
為投影加入一個表達式。 |
| AddToProjection(IProperty, IQuerySource) |
在投影中新增一欄。 |
| AddToProjection(Expression, Boolean) |
為投影加入一個表達式。 |
| AddToProjection(String, IProperty, IQuerySource) |
在投影中新增一欄。 |
AddToProjection(AliasExpression)
這會增加投影的 a 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)
在投影中新增一欄。
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)
為投影加入一個表達式。
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值。
傳回
該表示式中加入的對 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應索引。