Table of Contents

Class ResourceFieldChainExpression

Namespace
JsonApiDotNetCore.Queries.Expressions
Assembly
JsonApiDotNetCore.dll

Represents a chain of JSON:API fields (relationships and attributes), resulting from text such as: articles.revisions.author , or: owner.LastName .

[PublicAPI]
public class ResourceFieldChainExpression : IdentifierExpression
Inheritance
ResourceFieldChainExpression
Inherited Members

Constructors

ResourceFieldChainExpression(ResourceFieldAttribute)

public ResourceFieldChainExpression(ResourceFieldAttribute field)

Parameters

field ResourceFieldAttribute

ResourceFieldChainExpression(IImmutableList<ResourceFieldAttribute>)

public ResourceFieldChainExpression(IImmutableList<ResourceFieldAttribute> fields)

Parameters

fields IImmutableList<ResourceFieldAttribute>

Properties

Fields

A list of one or more JSON:API fields. Use Match(string, ResourceType, FieldChainPatternMatchOptions, ILoggerFactory?) to convert from text.

public IImmutableList<ResourceFieldAttribute> Fields { get; }

Property Value

IImmutableList<ResourceFieldAttribute>

Methods

Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult>, TArgument)

public override TResult Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult> visitor, TArgument argument)

Parameters

visitor QueryExpressionVisitor<TArgument, TResult>
argument TArgument

Returns

TResult

Type Parameters

TArgument
TResult

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToFullString()

public override string ToFullString()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.