語言

PathSegment 結構

定義

一個結構體,代表 JSON 路徑中一個元件,用於 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
屬性
實作

建構函式

名稱 Description
PathSegment(SqlExpression)

建立一個 PathSegment 新的結構體,代表 JSON 陣列元素的存取。

PathSegment(String)

建立 PathSegment 一個新的結構體,代表 JSON 屬性存取。

屬性

名稱 Description
ArrayIndex

在 JSON 陣列中被存取的元素索引。

Key

這個金鑰是在 JSON 中被存取的。

PropertyName

正在存取的 JSON 屬性名稱。

方法

名稱 Description
Equals(Object)

一個結構體,代表 JSON 路徑中一個元件,用於 JsonQueryExpression 或 JsonScalarExpression。

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

GetHashCode()

一個結構體,代表 JSON 路徑中一個元件,用於 JsonQueryExpression 或 JsonScalarExpression。

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

Quote()

引用這句話;也就是說,回傳一個表達式,當被評估時,會構造出與此表達式相同的表達式。 用於產生預編譯查詢的程式碼,重建此表達式。

ToString()

一個結構體,代表 JSON 路徑中一個元件,用於 JsonQueryExpression 或 JsonScalarExpression。

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

適用於