Beispiel #1
0
 public ConditionBuilder Or(Action <ConditionBuilder> comparisons)
 {
     Or();
     var where = new ConditionBuilder();
     Items.Add(where);
     comparisons(where);
     return(this);
 }
Beispiel #2
0
        ToDBCommand Join(string table, Action <ConditionBuilder> where, Join.JoinType joinType)
        {
            ConditionBuilder whereBuilder = new ConditionBuilder();

            where (whereBuilder);
            Joins.Add(new Join {
                Table = new TableItem {
                    Item = table
                }, On = whereBuilder, TypeOfJoin = joinType
            });
            return(this);
        }