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)); }
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)); }
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()); }
public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery) { return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, _projection, _propertyName, _lo, _hi)); }
public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery) { object icvalue = ignoreCase ? value.ToString().ToLower() : value; return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, _projection, propertyName, icvalue)); }
public override TypedValue[] GetTypedValues(ICriteria criteria, ICriteriaQuery criteriaQuery) { return(CriterionUtil.GetTypedValues(criteriaQuery, criteria, projection, propertyName, value.ToString().ToLower())); }