public virtual object GetSearchValue(string propertyName) { CommonSearchCriterionItem firstSearch = this.Searches.GetFirstSearch(propertyName); if (firstSearch == null) { return(null); } return(firstSearch.Value); }
public virtual void SetSearch(string propertyName, object value) { CommonSearchCriterionItem firstSearch = this.GetFirstSearch(propertyName); if (firstSearch != null) { firstSearch.Value = value; } else { this.AddSearch(propertyName, value); } }
public virtual void SetSearch(string propertyName, SingleSearchModeEnum searchMode) { CommonSearchCriterionItem firstSearch = this.GetFirstSearch(propertyName); if (firstSearch != null) { firstSearch.SingleSearchMode = searchMode; } else { this.AddSearch(propertyName, searchMode); } }
public virtual void SetSearch(string propertyName, object value, SearchModeEnum searchMode, TypeCode type) { CommonSearchCriterionItem firstSearch = this.GetFirstSearch(propertyName); if (firstSearch != null) { firstSearch.Value = value; firstSearch.SearchMode = searchMode; firstSearch.Type = type; } else { this.AddSearch(propertyName, value, searchMode, type); } }
public CommonSearchCriterionItem(CommonSearchCriterionItem item) : this(item.PropertyName, item.Value, item.SearchMode, item.Type) { }
protected virtual void FormatSearch(CommonSearchCriterionItem cschitem) { cschitem.Value = SearchHelper.ConvertToSearchValue(cschitem.Value, cschitem.Type); }
public HqlCommonSearchCriterionItem(CommonSearchCriterionItem item) : base(item) { }