File

projects/wms-framework/src/lib/domainservicesupport/QueryBuilder.ts

Index

Properties
Methods

Properties

Private csWhere
Type : CSharpExpression

Methods

Public AddWhere
AddWhere(expr: CSharpExpression)
Parameters :
Name Type Optional
expr CSharpExpression No
Returns : QueryBuilder<T>
ApplyTo
ApplyTo(arg0: T[])
Parameters :
Name Type Optional
arg0 T[] No
Returns : T[]
ApplyTo
ApplyTo(arg0: EntityQuery)
Parameters :
Name Type Optional
arg0 EntityQuery<T> No
Returns : EntityQuery<T>
ApplyTo
ApplyTo(arg0: any)
Parameters :
Name Type Optional
arg0 any No
Returns : any
import { CSharpExpression } from '../helpers/ExpressionTrees';
import { EntityQuery } from './EntitiesSupport';

export class QueryBuilder<T> {
  private csWhere: CSharpExpression;
  ApplyTo(arg0: T[]): T[];
  ApplyTo(arg0: EntityQuery<T>): EntityQuery<T>;
  ApplyTo(arg0: any): any {
    if (this.csWhere) {
      // Not supported, to be reviewed.
      // arg0.whereExpr =   this.csWhere.toRiaQuery({'b' : 'it'});
    }
    return arg0;
  }

  public AddWhere(expr: CSharpExpression): QueryBuilder<T> {
    this.csWhere = expr;
    return this;
  }
}

/**
 * QueryResult class
 *
 * @export
 * @class QueryResult
 * @template T
 * @wType System.ServiceModel.DomainServices.Client.QueryResult`1
 */
export class QueryResult<T> {}

result-matching ""

    No results matching ""