コード例 #1
0
ファイル: UpdateStatement.cs プロジェクト: vain0x/playground
 public UpdateStatement(SqlBuilder sqlBuilder, Table table)
 {
     SqlBuilder     = sqlBuilder;
     Table          = table;
     Assignment     = new AssignmentRecord();
     WhereCondition = new CompoundSqlCondition(sqlBuilder);
 }
コード例 #2
0
 public SelectStatement(
     SqlBuilder sqlBuilder,
     Option <CombinedSelectStatement> combined,
     RelationSqlExpression relation
     )
 {
     SqlBuilder      = sqlBuilder;
     Combined        = combined;
     Source          = relation;
     WhereCondition  = new CompoundSqlCondition(SqlBuilder);
     HavingCondition = new CompoundSqlCondition(SqlBuilder);
 }
コード例 #3
0
 internal CompoundSqlCondition Add(CompoundSqlCondition condition)
 {
     if (ReferenceEquals(Combinator, condition.Combinator))
     {
         Conditions.AddRange(condition.Conditions);
     }
     else
     {
         Conditions.Add(condition);
     }
     return(this);
 }