語言

SelectExpression 類別

定義

代表一個 SQL SELECT 運算式。

public class SelectExpression : Microsoft.EntityFrameworkCore.Query.Expressions.TableExpressionBase
type SelectExpression = class
    inherit TableExpressionBase
Public Class SelectExpression
Inherits TableExpressionBase
繼承
SelectExpression

建構函式

名稱 Description
SelectExpression(IQuerySqlGeneratorFactory, RelationalQueryCompilationContext, String)

建立一個新的 SelectExpression 實例。

SelectExpression(IQuerySqlGeneratorFactory, RelationalQueryCompilationContext)

建立一個新的 SelectExpression 實例。

SelectExpression(SelectExpressionDependencies, RelationalQueryCompilationContext, String)

建立一個新的 SelectExpression 實例。

SelectExpression(SelectExpressionDependencies, RelationalQueryCompilationContext)

建立一個新的 SelectExpression 實例。

屬性

名稱 Description
Alias

拿到化名。

(繼承來源 TableExpressionBase)
Dependencies

用於建立 SelectExpression

GroupBy

這個 SelectExpression 的 SQL 群組。

Having

取得或設定對應於 SELECT 表達式中 HAVING 部分的謂詞。

IsDistinct

取得或設定一個值,表示此 SelectExpression 是否為 DISTINCT。

IsProjectStar

會取得或設定一個值,表示此表達式是否投射單一通配符('*')。

Limit

取得或設定此 SelectExpression 的 LIMIT。

NodeType

回傳此 Expression節點的類型。 (繼承自 Expression。)

(繼承來源 TableExpressionBase)
Offset

取得或設定此 SelectExpression 的 OFFSET。

OrderBy

此 SELECTExpression 的 SQL 順序。

Predicate

取得或設定對應 SELECT 表達式 WHERE 部分的謂詞。

Projection

這個 SelectExpression 的投影。

ProjectStarAlias

取得或設定用於星空投影的表格別名。

ProjectStarTable

拿到或擺設桌子,準備用來投影星星。

QuerySource

取得查詢來源。

(繼承來源 TableExpressionBase)
Tables

這些表格組成 SELECT 運算式的 FROM 部分。

Tags

任何與此 SelectExpression 相關的標籤。

Type

這種表達方式。

方法

名稱 Description
Accept(ExpressionVisitor)

針對此節點類型的特定訪問方法進行派遣。

AddAliasToProjection(String, Expression)

在投影中加入帶有別名的表達式。

AddCrossJoin(TableExpressionBase, IEnumerable<Expression>)

在此 SelectExpression 中新增 SQL 交叉連接。

AddCrossJoinLateral(TableExpressionBase, IEnumerable<Expression>)

在此 SelectExpression 中新增 SQL CROSS JOIN LATERAL 功能。

AddInnerJoin(TableExpressionBase, IEnumerable<Expression>, Expression)

為此 SelectExpression 新增 SQL 內部連接。

AddInnerJoin(TableExpressionBase, IEnumerable<Expression>)

為此 SelectExpression 新增 SQL 內部連接。

AddInnerJoin(TableExpressionBase)

為此 SelectExpression 新增 SQL 內部連接。

AddLateralJoin(TableExpressionBase, IEnumerable<Expression>)

在此 SelectExpression 中新增一個 SQL 橫向連接。

AddLeftOuterJoin(TableExpressionBase, IEnumerable<Expression>)

為此 SelectExpression 新增一個 SQL 左外連接。

AddLeftOuterJoin(TableExpressionBase)

為此 SelectExpression 新增一個 SQL 左外連接。

AddTable(TableExpressionBase, Boolean)

會在這個 SelectExpression 中加入一個表格。

AddTable(TableExpressionBase)

會在這個 SelectExpression 中加入一個表格。

AddTables(IEnumerable<TableExpressionBase>)

新增資料表到 SelectExprssion。

AddToGroupBy(Expression[])

在此 SelectExpression 的 GROUP BY 子句中新增表達式清單

AddToOrderBy(IEnumerable<Ordering>)

在此 SelectExpression 的 ORDER BY 中加入多個表達式。

AddToOrderBy(Ordering)

在順序中加入一個單 Remotion.Linq.Clauses.Ordering 點。

AddToOrderBy(String, IProperty, TableExpressionBase, OrderingDirection)

會在這個 SelectExpression 的 ORDER BY 中加入一欄。

AddToPredicate(Expression)

在此 SelectExpression 中加入一個謂詞表達式,必要時可與任何現有謂詞結合。

AddToProjection(AliasExpression)

這會增加投影的 a AliasExpression 。

AddToProjection(ColumnExpression)

在投影中新增一個 ColumnExpression。

AddToProjection(Expression, Boolean)

為投影加入一個表達式。

AddToProjection(Expression)

為投影加入一個表達式。

AddToProjection(IProperty, IQuerySource)

在投影中新增一欄。

AddToProjection(String, IProperty, IQuerySource)

在投影中新增一欄。

BindProperty(IProperty, IQuerySource)

產生一個綁定於所提供屬性選擇表達式的表達式。

BindSubqueryProjectionIndex(Int32, IQuerySource)

計算對應於所提供索引與查詢來源的綁定表達式。

Clear()

清除此 SelectExpression 的所有元素。

ClearColumnProjections()

清除投影中的欄位表達式。

ClearOrderBy()

清除此 SelectExpression 的 ORDER BY。

ClearProjection()

清除投影。

ClearTables()

移除新增到此 SelectExpression 的任何資料表。

Clone(String)

會複製這個 SelectExpression。

CreateDefaultQuerySqlGenerator()

建立預設的查詢 SQL 產生器。

CreateFromSqlQuerySqlGenerator(String, Expression)

建立 FromSql 查詢 SQL 產生器。

ExplodeStarProjection()

透過將萬用字元('*')投影展開為獨立的明確投影表達式,將此 SelectExpression 的投影轉換。

GetMappedProjectionTypes()

取得 中 Projection表達式的類型。

GetProjectionForMemberInfo(MemberInfo)

取得與所提供會員資訊對應的投影值。

GetProjectionIndex(IProperty, IQuerySource)

計算對應所提供屬性與查詢來源的 Projection 索引。

GetProjectionTypes()
已淘汰.

取得 中 Projection表達式的類型。

GetTableForQuerySource(IQuerySource)

取得對應於所提供查詢來源的資料表。

HandlesQuerySource(IQuerySource)

判斷此 SelectExpression 是否能處理給定的查詢來源。

IsCorrelated()

判斷此 SelectExpression 是否包含任何相關的子查詢。

IsIdentityQuery()

判斷此 SelectExpression 是否為身份查詢。 身份查詢只有一個資料表,並回傳該資料表中所有未修改的資料列。

LiftOrderBy()

確保從 Project Star 表中此選擇式的表達式排序複製到外層,以保持順序。

PrependToOrderBy(IEnumerable<Ordering>)

在此 SelectExpression 的 ORDER BY 前加多個排序表達式。

PreProcessQuerySource(IQuerySource)

預處理給定 Remotion.Linq.Clauses.IQuerySource的 。

(繼承來源 TableExpressionBase)
PushDownSubquery()

根據此 SelectExpression 建立一個子查詢,並將該表設為 中 Tables的唯一條目。 清除此 SelectExpression 的所有頂層功能。

RemoveFromProjection(IEnumerable<Ordering>)

從投影中移除對應所提供 Remotion.Linq.Clauses.Ordering 表達式的表達式。

RemoveRangeFromProjection(Int32)

這樣會從投影中移除一個範圍。

RemoveTable(TableExpressionBase)

從此 SelectExpression 中移除一個資料表。

ReplaceOrderBy(IEnumerable<Ordering>)
已淘汰.

將目前的排序替換為參數的表達式

ReplaceProjection(IEnumerable<Expression>)

將投影表達式替換為 SelectExpression 中的表現式。

SetProjectionConditionalExpression(ConditionalExpression)

將 a ConditionalExpression 設為此 SelectExpression 中唯一的投影表達式。

SetProjectionExpression(Expression)

將一個表達式設為此 SelectExpression 中唯一的投影表達式。

SetProjectionForMemberInfo(MemberInfo, Expression)

將所提供的表達式設為所提供成員資訊的投影。

ToString()

將此物件轉換為字串表示。

UpdateColumnExpression(Expression, TableExpressionBase)

更新目標表達式中任何欄位表達式的表式。

VisitChildren(ExpressionVisitor)

約簡節點,然後呼叫 Visit(Expression) 傳遞約簡表達式的方法。 如果節點不可約,會拋出例外。

適用於