summaryrefslogtreecommitdiff
path: root/src/app/Cmpp298.Assignment3.DataAccess/DatabaseColumn.cs
blob: b8e4b133addd4864f63a4a686e255f11a1fe1286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
namespace Cmpp298.Assignment3.DataAccess {
	public class DatabaseColumn {
		private readonly string _tableName;
		private readonly string _columnName;

		internal DatabaseColumn( string tableName, string columnName ) {
			_tableName = tableName;
			_columnName = columnName;
		}

		public string TableName {
			get { return _tableName; }
		}

		public string ColumnName {
			get { return _columnName; }
		}

		public override string ToString( ) {
			return string.Format( "[{0}].[{1}]", _tableName, _columnName );
		}
	}
}