コード例 #1
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query Where(string tableName, string columnName, WhereComparision comparison, object value)
 {
     if (_ListWhere == null) _ListWhere = new WhereList();
     _ListWhere.Clear();
     _ListWhere.Add(new Where(WhereCondition.AND, tableName, columnName, comparison, value));
     return this;
 }
コード例 #2
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query AddWhere(string tableName, string columnName, WhereComparision comparison, string otherTableName, string otherColumnName)
 {
     if (_ListWhere == null) _ListWhere = new WhereList();
     _ListWhere.Add(new Where(WhereCondition.AND, tableName, columnName, comparison, otherTableName, otherColumnName));
     return this;
 }
コード例 #3
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query AddWhere(string columnName, WhereComparision comparison, object value)
 {
     return Where(new Where(WhereCondition.AND, columnName, ValueObjectType.ColumnName, comparison, value, ValueObjectType.Value), false);
 }
コード例 #4
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query AddWhere(WhereCondition condition, object thisObject, ValueObjectType thisObjectType, WhereComparision comparison, object thatObject, ValueObjectType thatObjectType)
 {
     return Where(new Where(condition, thisObject, thisObjectType, comparison, thatObject, thatObjectType), false);
 }
コード例 #5
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query OR(string tableName, string columnName, WhereComparision comparison, string otherTableName, string otherColumnName)
 {
     return Where(new Where(WhereCondition.OR, tableName, columnName, comparison, otherTableName, otherColumnName), false);
 }
コード例 #6
0
ファイル: Wheres.cs プロジェクト: ycaihua/dg.Sql
 public Query OR(string tableName, string columnName, WhereComparision comparison, object value)
 {
     return Where(new Where(WhereCondition.OR, tableName, columnName, comparison, value), false);
 }
コード例 #7
0
ファイル: Where.cs プロジェクト: ycaihua/dg.Sql
 public Where(object thisObject, ValueObjectType thisObjectType, WhereComparision comparedBy, object thatObject, ValueObjectType thatObjectType)
 {
     Comparision = comparedBy;
     First = thisObject;
     FirstType = thisObjectType;
     Second = thatObject;
     SecondType = thatObjectType;
 }
コード例 #8
0
ファイル: Where.cs プロジェクト: ycaihua/dg.Sql
 public Where(object thisLiteral, WhereComparision comparedBy, object thatLiteral)
 {
     Comparision = comparedBy;
     First = thisLiteral;
     Second = thatLiteral;
 }
コード例 #9
0
ファイル: Where.cs プロジェクト: ycaihua/dg.Sql
 public Where(WhereCondition condition,
     string tableName, string columnName,
     WhereComparision comparedBy, string thatTableName, string thatColumnName)
 {
     Condition = condition;
     Comparision = comparedBy;
     FirstTableName = tableName;
     First = columnName;
     FirstType = ValueObjectType.ColumnName;
     SecondTableName = thatTableName;
     Second = thatColumnName;
     SecondType = ValueObjectType.ColumnName;
 }
コード例 #10
0
ファイル: Where.cs プロジェクト: ycaihua/dg.Sql
 public Where(string tableName, string columnName,
     WhereComparision comparedBy, object value)
 {
     Comparision = comparedBy;
     FirstTableName = tableName;
     First = columnName;
     FirstType = ValueObjectType.ColumnName;
     Second = value;
     SecondType = ValueObjectType.Value;
 }