Example #1
0
        Expression <Func <TEntity, bool> > GetWhereExpression(CriteriaOperator criteria)
        {
            var caseInsensitiveCriteria = Data.Helpers.StringsTolowerCloningHelper.Process(criteria);

            return(this.IsInDesignMode()
                ? CriteriaOperatorToExpressionConverter.GetLinqToObjectsWhere <TEntity>(caseInsensitiveCriteria)
                : CriteriaOperatorToExpressionConverter.GetGenericWhere <TEntity>(caseInsensitiveCriteria));
        }
 Expression <Func <TEntity, bool> > GetWhereExpression(CriteriaOperator criteria)
 {
     return(this.IsInDesignMode()
         ? CriteriaOperatorToExpressionConverter.GetLinqToObjectsWhere <TEntity>(criteria)
         : CriteriaOperatorToExpressionConverter.GetGenericWhere <TEntity>(criteria));
 }