共用方式為


SelectExpression 類別

定義

表示 SQL SELECT 運算式。

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

建構函式

SelectExpression(IQuerySqlGeneratorFactory, RelationalQueryCompilationContext)

建立 SelectExpression 的新實例。

SelectExpression(IQuerySqlGeneratorFactory, RelationalQueryCompilationContext, String)

建立 SelectExpression 的新實例。

SelectExpression(SelectExpressionDependencies, RelationalQueryCompilationContext)

建立 SelectExpression 的新實例。

SelectExpression(SelectExpressionDependencies, RelationalQueryCompilationContext, String)

建立 SelectExpression 的新實例。

屬性

Alias

取得別名。

(繼承來源 TableExpressionBase)
Dependencies

用來建立 的相依性 SelectExpression

GroupBy

這個 SelectExpression 的 SQL GROUP BY。

Having

取得或設定對應至 SELECT 運算式之 HAVING 部分的述詞。

IsDistinct

取得或設定值,指出這個 SelectExpression 是否為 DISTINCT。

IsProjectStar

取得或設定值,指出這個運算式是否會投影單一萬用字元 ('*') 。

Limit

取得或設定這個 SelectExpression 的 LIMIT。

NodeType

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

(繼承來源 TableExpressionBase)
Offset

取得或設定這個 SelectExpression 的 OFFSET。

OrderBy

這個 SelectExpression 的 SQL ORDER BY。

Predicate

取得或設定對應至 SELECT 運算式 WHERE 部分的述詞。

Projection

這個 SelectExpression 的投影。

ProjectStarAlias

取得或設定要用於star投影的資料表別名。

ProjectStarTable

取得或設定要用於star投影的資料表。

QuerySource

取得查詢來源。

(繼承來源 TableExpressionBase)
Tables

組成 SELECT 運算式之 FROM 部分的資料表。

Tags

與此 SelectExpression 相關聯的任何標記。

Type

這個運算式的類型。

方法

Accept(ExpressionVisitor)

分派給這個節點類型的特定造訪方法。

AddAliasToProjection(String, Expression)

將具有別名的運算式加入投影中。

AddCrossJoin(TableExpressionBase, IEnumerable<Expression>)

將 SQL CROSS JOIN 新增至這個 SelectExpression。

AddCrossJoinLateral(TableExpressionBase, IEnumerable<Expression>)

將 SQL CROSS JOIN 橫向新增至這個 SelectExpression。

AddInnerJoin(TableExpressionBase)

將 SQL INNER JOIN 新增至這個 SelectExpression。

AddInnerJoin(TableExpressionBase, IEnumerable<Expression>)

將 SQL INNER JOIN 新增至這個 SelectExpression。

AddInnerJoin(TableExpressionBase, IEnumerable<Expression>, Expression)

將 SQL INNER JOIN 新增至這個 SelectExpression。

AddLateralJoin(TableExpressionBase, IEnumerable<Expression>)

將 SQL 橫向聯結新增至這個 SelectExpression。

AddLeftOuterJoin(TableExpressionBase)

將 SQL LEFT OUTER JOIN 新增至這個 SelectExpression。

AddLeftOuterJoin(TableExpressionBase, IEnumerable<Expression>)

將 SQL LEFT OUTER JOIN 新增至這個 SelectExpression。

AddTable(TableExpressionBase)

將資料表新增至這個 SelectExpression。

AddTable(TableExpressionBase, Boolean)

將資料表新增至這個 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)

AliasExpression將 加入至投影。

AddToProjection(ColumnExpression)

將 ColumnExpression 新增至投影。

AddToProjection(Expression)

將運算式加入投影中。

AddToProjection(Expression, Boolean)

將運算式加入投影中。

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)

ConditionalExpression將此 SelectExpression 中的 設定為單一投影運算式。

SetProjectionExpression(Expression)

將此 SelectExpression 中的運算式設定為單一投影運算式。

SetProjectionForMemberInfo(MemberInfo, Expression)

將提供的運算式設定為所提供成員資訊的投影。

ToString()

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

UpdateColumnExpression(Expression, TableExpressionBase)

更新目標運算式中任何資料行運算式的資料表運算式。

VisitChildren(ExpressionVisitor)

減少節點,然後呼叫 Visit(Expression) 傳遞縮減運算式的方法。 如果無法精簡節點,則會擲回例外狀況。

適用於