示例#1
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Adds the elements of an array to the end of this SelectItemCollection.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the end of this SelectItemCollection.
		/// </param>
		public virtual void AddRange(SelectItem[] items)
		{
			foreach (SelectItem item in items)
			{
				this.List.Add(item);
			}
		}
示例#2
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Removes the first occurrence of a specific SelectItem from this SelectItemCollection.
		/// </summary>
		/// <param name="value">
		/// The SelectItem value to remove from this SelectItemCollection.
		/// </param>
		public virtual void Remove(SelectItem value)
		{
			this.List.Remove(value);
		}
示例#3
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Initializes a new instance of the SelectItemCollection class, containing elements
		/// copied from an array.
		/// </summary>
		/// <param name="items">
		/// The array whose elements are to be added to the new SelectItemCollection.
		/// </param>
		public SelectItemCollection(SelectItem[] items)
		{
			this.AddRange(items);
		}
示例#4
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Inserts an element into the SelectItemCollection at the specified index
		/// </summary>
		/// <param name="index">
		/// The index at which the SelectItem is to be inserted.
		/// </param>
		/// <param name="value">
		/// The SelectItem to insert.
		/// </param>
		public virtual void Insert(int index, SelectItem value)
		{
			this.List.Insert(index, value);
		}
示例#5
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Return the zero-based index of the first occurrence of a specific value
		/// in this SelectItemCollection
		/// </summary>
		/// <param name="value">
		/// The SelectItem value to locate in the SelectItemCollection.
		/// </param>
		/// <returns>
		/// The zero-based index of the first occurrence of the _ELEMENT value if found;
		/// -1 otherwise.
		/// </returns>
		public virtual int IndexOf(SelectItem value)
		{
			return this.List.IndexOf(value);
		}
示例#6
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Determines whether a specfic SelectItem value is in this SelectItemCollection.
		/// </summary>
		/// <param name="value">
		/// The SelectItem value to locate in this SelectItemCollection.
		/// </param>
		/// <returns>
		/// true if value is found in this SelectItemCollection;
		/// false otherwise.
		/// </returns>
		public virtual bool Contains(SelectItem value)
		{
			return this.List.Contains(value);
		}
示例#7
0
文件: SelectItem.cs 项目: npenin/uss
		/// <summary>
		/// Adds an instance of type SelectItem to the end of this SelectItemCollection.
		/// </summary>
		/// <param name="value">
		/// The SelectItem to be added to the end of this SelectItemCollection.
		/// </param>
		public virtual void Add(SelectItem value)
		{
			this.List.Add(value);
		}
示例#8
0
文件: DBDialect.cs 项目: npenin/uss
		public virtual void Visit(SelectItem item)
		{
			if (item.ColumnAlias != String.Empty)
				_Query.Append(AS).Append(item.ColumnAlias).Append(SPACE);
		}