Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Order<EntityT>

OData queries take this to determine the order of results.

Type parameters

Hierarchy

  • Order

Implements

  • EntityIdentifiable<EntityT>

Index

Constructors

constructor

  • new Order(_fieldName: string, orderType?: OrderType): Order
  • Creates an instance of Order.

    Parameters

    • _fieldName: string

      Field to order by

    • Default value orderType: OrderType = "asc"

      Type of ordering, can be 'asc' for ascending or 'desc' for descending

    Returns Order

Properties

Readonly _entity

_entity: EntityT

Readonly _entityConstructor

_entityConstructor: Constructable<EntityT>

_fieldName

_fieldName: string

Field to order by

orderType

orderType: OrderType

Type of ordering, can be 'asc' for ascending or 'desc' for descending