语言

PathSegment 结构

定义

一个结构,表示用于 JsonQueryExpression 或 JsonScalarExpression.

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct PathSegment : Microsoft.EntityFrameworkCore.Query.IRelationalQuotableExpression
public class PathSegment
[System.Runtime.CompilerServices.IsReadOnly]
[System.Runtime.CompilerServices.Nullable(0)]
public readonly struct PathSegment
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type PathSegment = struct
    interface IRelationalQuotableExpression
type PathSegment = class
[<System.Runtime.CompilerServices.IsReadOnly>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type PathSegment = struct
Public Structure PathSegment
Implements IRelationalQuotableExpression
Public Class PathSegment
Public Structure PathSegment
继承
PathSegment
继承
PathSegment
特性
实现

构造函数

名称 说明
PathSegment(SqlExpression)

创建表示 JSON 数组元素访问的新 PathSegment 结构。

PathSegment(String)

创建表示 JSON 属性访问的新 PathSegment 结构。

属性

名称 说明
ArrayIndex

要在 JSON 数组中访问的元素的索引。

Key

在 JSON 中访问的密钥。

PropertyName

要访问的 JSON 属性的名称。

方法

名称 说明
Equals(Object)

一个结构,表示用于 JsonQueryExpression 或 JsonScalarExpression.

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

GetHashCode()

一个结构,表示用于 JsonQueryExpression 或 JsonScalarExpression.

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

Quote()

引用表达式;也就是说,返回一个表达式,在计算时,将构造与此表达式相同的表达式。 用于生成预编译查询的代码,用于重新构造此表达式。

ToString()

一个结构,表示用于 JsonQueryExpression 或 JsonScalarExpression.

此类型通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

适用于