/** Construct query conditions by applying given UserMaster criteria to query object. * @return The updated query */ private IQueryable<Person> ConstructQueryConditions(IQueryable<Person> query, SearchRange rangeCriteria, PersonSearcher criteria) { //if (criteria.businessEntityId != null) { // long entityId = criteria.businessEntityId; // query = query.Where(i => i.businessEntityId == entityId); //} return query; }
/** Construct query conditions by applying given UserMaster criteria to query object. * @return The updated query */ private IQueryable<EmployeePayHistory> ConstructQueryConditions(IQueryable<EmployeePayHistory> query, SearchRange rangeCriteria, EmployeePayHistorySearcher criteria) { //if (criteria.businessEntityId != null) { // long entityId = criteria.businessEntityId; // query = query.Where(i => i.businessEntityId == entityId); //} return query; }
/** Construct query conditions by applying given UserMaster criteria to query object. * @return The updated query */ private IQueryable<Customer> ConstructQueryConditions(IQueryable<Customer> query, SearchRange rangeCriteria, CustomerSearcher criteria) { //if (criteria.customerId != null) { // long entityId = criteria.customerId; // query = query.Where(i => i.customerId == entityId); //} return query; }
/** Construct query conditions by applying given UserMaster criteria to query object. * @return The updated query */ private IQueryable<SalesTerritory> ConstructQueryConditions(IQueryable<SalesTerritory> query, SearchRange rangeCriteria, SalesTerritorySearcher criteria) { //if (criteria.salesTerritoryId != null) { // long entityId = criteria.salesTerritoryId; // query = query.Where(i => i.salesTerritoryId == entityId); //} return query; }
/** Construct query conditions by applying given UserMaster criteria to query object. * @return The updated query */ private IQueryable<Product> ConstructQueryConditions(IQueryable<Product> query, SearchRange rangeCriteria, ProductSearcher criteria) { //if (criteria.productId != null) { // long entityId = criteria.productId; // query = query.Where(i => i.productId == entityId); //} return query; }
/** Construct query conditions by applying given UserMaster criteria to query object. * @param query the query * @param criteria the criteria * @returns The updated query */ private IQueryable<UserMaster> ConstructQueryConditions(IQueryable<UserMaster> query, SearchRange rangeCriteria, UserMasterSearcher criteria) { decimal userNumber; if (criteria.UserIdentifier != null && decimal.TryParse(criteria.UserIdentifier, out userNumber)) { query = query.Where(i => i.UserNumber == userNumber); } return query; }