Class EntityQuery

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(resourceName?: string): EntityQuery

Parameters

  • resourceName?: string optional

Returns

EntityQuery

Properties

public entityManager: EntityManager

public orderByClause: OrderByClause

public parameters: Object

public queryOptions: QueryOptions

public resourceName: string

public resultEntityType: EntityType

public skipCount: number

public takeCount: number

public wherePredicate: Predicate

Methods

public execute(callback?: ExecuteQuerySuccessCallback, errorCallback?: ExecuteQueryErrorCallback): Promise

Parameters

Returns

Promise

public executeLocally(): Entity[]

Returns

Entity[]

public expand(propertyPaths: Array<string>): EntityQuery

Parameters

  • propertyPaths: Array<string>

Returns

EntityQuery

public expand(propertyPaths: string): EntityQuery

Parameters

  • propertyPaths: string

Returns

EntityQuery

public static from(resourceName: string): EntityQuery

Parameters

  • resourceName: string

Returns

EntityQuery

public from(resourceName: string): EntityQuery

Parameters

  • resourceName: string

Returns

EntityQuery

public static fromEntities(entity: Entity): EntityQuery

Parameters

Returns

EntityQuery

public static fromEntities(entities: Entity[]): EntityQuery

Parameters

Returns

EntityQuery

public static fromEntityKey(entityKey: EntityKey): EntityQuery

Parameters

Returns

EntityQuery

public static fromEntityNavigation(entity: Entity, navigationProperty: NavigationProperty): EntityQuery

Parameters

Returns

EntityQuery

public inlineCount(enabled?: boolean): EntityQuery

Parameters

  • enabled?: boolean optional

Returns

EntityQuery

public noTracking(enabled: boolean): EntityQuery

Parameters

  • enabled: boolean

Returns

EntityQuery

public orderBy(propertyPaths: string): EntityQuery

Parameters

  • propertyPaths: string

Returns

EntityQuery

public orderBy(propertyPaths: Array<string>): EntityQuery

Parameters

  • propertyPaths: Array<string>

Returns

EntityQuery

public orderByDesc(propertyPaths: string): EntityQuery

Parameters

  • propertyPaths: string

Returns

EntityQuery

public orderByDesc(propertyPaths: Array<string>): EntityQuery

Parameters

  • propertyPaths: Array<string>

Returns

EntityQuery

public select(propertyPaths: string): EntityQuery

Parameters

  • propertyPaths: string

Returns

EntityQuery

public select(propertyPaths: Array<string>): EntityQuery

Parameters

  • propertyPaths: Array<string>

Returns

EntityQuery

public skip(count: number): EntityQuery

Parameters

  • count: number

Returns

EntityQuery

public take(count: number): EntityQuery

Parameters

  • count: number

Returns

EntityQuery

public toType(typeName: string): EntityQuery

Parameters

  • typeName: string

Returns

EntityQuery

public toType(type: EntityType): EntityQuery

Parameters

Returns

EntityQuery

public top(count: number): EntityQuery

Parameters

  • count: number

Returns

EntityQuery

public using(obj: EntityManager): EntityQuery

Parameters

Returns

EntityQuery

public using(obj: DataService): EntityQuery

Parameters

Returns

EntityQuery

public using(obj: JsonResultsAdapter): EntityQuery

Parameters

Returns

EntityQuery

public using(obj: QueryOptions): EntityQuery

Parameters

Returns

EntityQuery

public using(obj: StrategySymbol): EntityQuery

Parameters

Returns

EntityQuery

public where(predicate: Predicate): EntityQuery

Parameters

Returns

EntityQuery

public where(property: string, operator: string, value: any): EntityQuery

Parameters

  • property: string
  • operator: string
  • value: any

Returns

EntityQuery

public where(property: string, operator: FilterQueryOpSymbol, value: any): EntityQuery

Parameters

Returns

EntityQuery

public where(predicate: FilterQueryOpSymbol): EntityQuery

Parameters

Returns

EntityQuery

public withParameters(params: Object): EntityQuery

Parameters

  • params: Object

Returns

EntityQuery