File

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

Description

QueryResult class

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 ""