Exemple #1
0
		/// <summary>
		/// Adds the <paramref name="column"/> to this table.
		/// </summary>
		/// <param name="column">The <see cref="Column"/> which to add.</param>
		/// <exception cref="ArgumentNullException">Thrown if <paramref name="column"/> is null.</exception>
		public void Add(Column column)
		{
			// validate arguments
			if (column == null)
				throw new ArgumentNullException("column");

			// add the column
			columns.Add(column);
		}
		/// <summary>
		/// </summary>
		/// <param name="table"></param>
		/// <param name="column"></param>
		public TableColumnPair(Table table, Column column)
		{
			// validate arguments
			if (table == null)
				throw new ArgumentNullException("table");
			if (column == null)
				throw new ArgumentNullException("column");

			// set values
			Table = table;
			Column = column;
		}