語言

QueryRootExpression 類別

定義

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

[System.Runtime.CompilerServices.Nullable(0)]
public abstract class QueryRootExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
public class QueryRootExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
public abstract class QueryRootExpression : System.Linq.Expressions.Expression, Microsoft.EntityFrameworkCore.Query.IPrintableExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type QueryRootExpression = class
    inherit Expression
    interface IPrintableExpression
type QueryRootExpression = class
    inherit Expression
    interface IPrintableExpression
Public MustInherit Class QueryRootExpression
Inherits Expression
Implements IPrintableExpression
Public Class QueryRootExpression
Inherits Expression
Implements IPrintableExpression
繼承
QueryRootExpression
衍生
屬性
實作

備註

更多資訊與範例請參閱「 資料庫提供者與擴充的實作 」以及「 EF Core 查詢如何運作 」。

建構函式

名稱 Description
QueryRootExpression(IAsyncQueryProvider, IEntityType)

建立一個帶有相關查詢提供者的新類別實例 QueryRootExpression 。

QueryRootExpression(IAsyncQueryProvider, Type)

建立一個帶有相關查詢提供者的新類別實例 QueryRootExpression 。

QueryRootExpression(IEntityType)

建立一個新的類別實例 QueryRootExpression ,沒有查詢提供者。

QueryRootExpression(Type)

建立一個新的類別實例 EntityQueryRootExpression ,沒有查詢提供者。

屬性

名稱 Description
CanReduce

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

ElementType

元素類型由此查詢根所代表。

EntityType

實體類型由此查詢根所取代。

NodeType

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

QueryProvider

與此查詢根相關聯的查詢提供者。

Type

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

方法

名稱 Description
DetachQueryProvider()

將相關的查詢提供者從此查詢根表達式中分離。

Equals(Object)

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

GetHashCode()

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

Print(ExpressionPrinter)

利用 ExpressionPrinter建立給定表達式的可列印字串表示。

UpdateEntityType(IEntityType)

更新與此查詢根相關的實體類型,並以等效的優化版本進行更新。

VisitChildren(ExpressionVisitor)

一個表示查詢根在查詢表達式中的表達式。

此類型通常由資料庫提供者(及其他擴充功能)使用。 它通常不被用於應用程式程式碼中。

明確介面實作

名稱 Description
IPrintableExpression.Print(ExpressionPrinter)

利用 ExpressionPrinter建立給定表達式的可列印字串表示。

適用於