Пример #1
0
 public virtual void SetSearches(string[] propertyNames, SingleSearchModeEnum searchMode)
 {
     foreach (string str in propertyNames)
     {
         this.SetSearch(str, searchMode);
     }
 }
Пример #2
0
        public virtual void SetSearch(string propertyName, SingleSearchModeEnum searchMode)
        {
            CommonSearchCriterionItem firstSearch = this.GetFirstSearch(propertyName);

            if (firstSearch != null)
            {
                firstSearch.SingleSearchMode = searchMode;
            }
            else
            {
                this.AddSearch(propertyName, searchMode);
            }
        }
Пример #3
0
 public CommonSearchCriterionItem(string propertyName, SingleSearchModeEnum searchMode)
 {
     this.Init();
     this.PropertyName     = propertyName;
     this.SingleSearchMode = searchMode;
 }
Пример #4
0
 public virtual void AddSearch(string propertyName, SingleSearchModeEnum searchMode)
 {
     this.Searches.Add(new CommonSearchCriterionItem(propertyName, searchMode));
 }
Пример #5
0
 public virtual void AddSearch(string propertyName, SingleSearchModeEnum searchMode)
 {
     this.Searches.AddSearch(propertyName, searchMode);
 }
Пример #6
0
 public virtual void SetSearches(string[] propertyNames, SingleSearchModeEnum searchMode)
 {
     this.Searches.SetSearches(propertyNames, searchMode);
 }
Пример #7
0
 public HqlCommonSearchCriterionItem(string propertyName, SingleSearchModeEnum searchMode)
     : base(propertyName, searchMode)
 {
 }