root/src/FmwkPoiesis.ObjectSearch/Range.cs

14
21
		public T MaxValue { get; set; }
21
		public T MaxValue { get; set; }
22
22
23
		#region Miembros de IComparator
23
		#region Miembros de IComparator
24
		public string BuildCommandSearch(bool isLastElement)
24
		public string BuildCommandSearch(IObjectSearchProvider provider,   bool isLastElement)
25
		{
25
		{
26
			string command = String.Format("({0} >= {1} and {0} <= {2})",
26
			return provider.BuildCommandRange(this, isLastElement);
27
											this.NameProperty, this.MinValue.ToString(), this.MaxValue.ToString());
28
29
			if (isLastElement)
30
				return command;
31
32
			if (this.And)
33
				return command + " and ";
34
			else
35
				return command + " or ";
36
		}
27
		}
37
		#endregion
28
		#endregion
38
	}
29
	}