Table of Contents

Class OrderByClause.OrderByItem

Namespace
Breeze.Core
Assembly
Breeze.Core.dll

One property to sort by, and whether it sorts descending.

public class OrderByClause.OrderByItem
Inheritance
OrderByClause.OrderByItem
Inherited Members

Constructors

OrderByItem(string, bool)

Create a sort term.

public OrderByItem(string propertyPath, bool isDesc)

Parameters

propertyPath string

The property path to sort by.

isDesc bool

True to sort descending.

Properties

IsDesc

Whether this path sorts descending.

public bool IsDesc { get; }

Property Value

bool

Property

The resolved property. Set by Validate(Type); null before it runs.

public PropertySignature? Property { get; }

Property Value

PropertySignature

PropertyPath

The property path to sort by, without any direction suffix.

public string PropertyPath { get; }

Property Value

string

Methods

Validate(Type)

Resolve this term's path against the entity type being queried.

public void Validate(Type entityType)

Parameters

entityType Type

The type the query returns.

Exceptions

Exception

The path does not name a property of that type.