Пример #1
0
        public TypedValue GetParameterTypedValue(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            object icvalue = ignoreCase ? value.ToString().ToLower() : value;

            if (_projection != null)
            {
                return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, _projection, null, icvalue).Single());
            }
            return(criteriaQuery.GetTypedValue(criteria, propertyName, icvalue));
        }
Пример #2
0
        public TypedValue GetParameterTypedValue(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            var matchValue = value.ToString().ToLower();

            if (projection != null)
            {
                return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, projection, null, matchValue).Single());
            }
            return(criteriaQuery.GetTypedValue(criteria, propertyName, matchValue));
        }
Пример #3
0
        public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            List <TypedValue> typedValues = new List <TypedValue>();

            if (projection != null)
            {
                typedValues.AddRange(projection.GetTypedValues(criteria, criteriaQuery));
                typedValues.AddRange(CriterionUtil.GetTypedValues(criteriaQuery, criteria, projection, null, value.ToString().ToLower()));
            }
            else
            {
                typedValues.Add(criteriaQuery.GetTypedValue(criteria, propertyName, value.ToString().ToLower()));
            }

            return(typedValues.ToArray());
        }
Пример #4
0
 public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, _projection, _propertyName, _lo, _hi));
 }
Пример #5
0
        public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery)
        {
            object icvalue = ignoreCase ? value.ToString().ToLower() : value;

            return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, _projection, propertyName, icvalue));
        }
Пример #6
0
 public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery)
 {
     return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, projection, propertyName, value.ToString().ToLower()));
 }