語言

EntityQueryRootExpression 類別

定義

一個表示實體查詢根的表達式。

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

[System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")]
[System.Runtime.CompilerServices.Nullable(0)]
public class EntityQueryRootExpression : Microsoft.EntityFrameworkCore.Query.QueryRootExpression
public class EntityQueryRootExpression : Microsoft.EntityFrameworkCore.Query.QueryRootExpression
[System.Runtime.CompilerServices.Nullable(0)]
public class EntityQueryRootExpression : Microsoft.EntityFrameworkCore.Query.QueryRootExpression
[<System.Diagnostics.DebuggerDisplay("{Microsoft.EntityFrameworkCore.Query.ExpressionPrinter.Print(this), nq}")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type EntityQueryRootExpression = class
    inherit QueryRootExpression
    interface IPrintableExpression
type EntityQueryRootExpression = class
    inherit QueryRootExpression
    interface IPrintableExpression
[<System.Runtime.CompilerServices.Nullable(0)>]
type EntityQueryRootExpression = class
    inherit QueryRootExpression
    interface IPrintableExpression
Public Class EntityQueryRootExpression
Inherits QueryRootExpression
繼承
EntityQueryRootExpression
屬性
實作

備註

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

建構函式

名稱 Description
EntityQueryRootExpression(IAsyncQueryProvider, IEntityType)

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

EntityQueryRootExpression(IEntityType)

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

屬性

名稱 Description
CanReduce

一個表示實體查詢根的表達式。

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

ElementType

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

(繼承來源 QueryRootExpression)
EntityType

此查詢根所代表的實體類型。

NodeType

一個表示實體查詢根的表達式。

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

QueryProvider

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

(繼承來源 QueryRootExpression)
Type

一個表示實體查詢根的表達式。

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

(繼承來源 QueryRootExpression)

方法

名稱 Description
DetachQueryProvider()

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

Equals(Object)

一個表示實體查詢根的表達式。

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

GetHashCode()

一個表示實體查詢根的表達式。

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

Print(ExpressionPrinter)

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

UpdateEntityType(IEntityType)

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

VisitChildren(ExpressionVisitor)

一個表示實體查詢根的表達式。

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

明確介面實作

名稱 Description
IPrintableExpression.Print(ExpressionPrinter)

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

適用於