Share via


PathSegment Struct

Definition

A struct representing a component of JSON path used in JsonQueryExpression or JsonScalarExpression.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

[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
Inheritance
PathSegment
Inheritance
PathSegment
Attributes
Implements

Constructors

Name Description
PathSegment(SqlExpression)

Creates a new PathSegment struct representing JSON array element access.

PathSegment(String)

Creates a new PathSegment struct representing JSON property access.

Properties

Name Description
ArrayIndex

The index of an element which is being accessed in the JSON array.

Key

The key which is being accessed in the JSON.

PropertyName

The name of JSON property which is being accessed.

Methods

Name Description
Equals(Object)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Quote()

Quotes the expression; that is, returns an expression that, when evaluated, would construct an expression identical to this one. Used to generate code for precompiled queries, which reconstructs this expression.

ToString()

Returns the fully qualified type name of this instance.

Applies to