EntityQueryRootExpression 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示查询表达式中的实体查询根的表达式。
此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。
[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
- 继承
- 特性
- 实现
注解
有关详细信息和示例,请参阅 数据库提供程序和扩展的实现 以及 EF Core 查询的工作原理 。
构造函数
| 名称 | 说明 |
|---|---|
| EntityQueryRootExpression(IAsyncQueryProvider, IEntityType) |
使用关联的查询提供程序创建类的新实例 EntityQueryRootExpression 。 |
| EntityQueryRootExpression(IEntityType) |
在不带任何查询提供程序的情况下创建类的新实例 EntityQueryRootExpression 。 |
属性
| 名称 | 说明 |
|---|---|
| CanReduce |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| ElementType |
此查询根表示的元素类型。 (继承自 QueryRootExpression) |
| EntityType |
此查询根表示的实体类型。 |
| NodeType |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| QueryProvider |
与此查询根关联的查询提供程序。 (继承自 QueryRootExpression) |
| Type |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 (继承自 QueryRootExpression) |
方法
| 名称 | 说明 |
|---|---|
| DetachQueryProvider() |
从此查询根表达式中分离关联的查询提供程序。 |
| Equals(Object) |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| GetHashCode() |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
| Print(ExpressionPrinter) |
使用 ExpressionPrinter. 创建给定表达式的可打印字符串表示形式。 |
| UpdateEntityType(IEntityType) |
使用等效优化版本更新与此查询根关联的实体类型。 |
| VisitChildren(ExpressionVisitor) |
表示查询表达式中的实体查询根的表达式。 此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。 |
显式接口实现
| 名称 | 说明 |
|---|---|
| IPrintableExpression.Print(ExpressionPrinter) |
使用 ExpressionPrinter. 创建给定表达式的可打印字符串表示形式。 |