diff options
| author | mo khan <mo@mokhan.ca> | 2007-08-26 20:10:42 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2007-08-26 20:10:42 -0600 |
| commit | 330be9feefb6394479553be0e078b4c4df3cbff1 (patch) | |
| tree | 55618c8af0d36583cde0ea5b4b193b98815a35aa /src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs | |
import from svntrunk
Diffstat (limited to 'src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs')
| -rw-r--r-- | src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs b/src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs new file mode 100644 index 0000000..3912f09 --- /dev/null +++ b/src/app/Cmpp298.Assignment3.DataAccess/WhereClause.cs @@ -0,0 +1,23 @@ +namespace Cmpp298.Assignment3.DataAccess {
+ public class WhereClause {
+ private readonly DatabaseColumn _column;
+ private readonly string _value;
+
+ public WhereClause( DatabaseColumn column, string value ) {
+ _column = column;
+ _value = value;
+ }
+
+ public DatabaseColumn Column {
+ get { return _column; }
+ }
+
+ public string Value {
+ get { return _value; }
+ }
+
+ public override string ToString( ) {
+ return string.Format( " WHERE [{0}].[{1}] = {2};", _column.TableName, _column.ColumnName, _value );
+ }
+ }
+}
\ No newline at end of file |
