Exemplo n.º 1
0
        public static IWhere Where(this Select select, string column, SqlOperator sqlOperator, object value)
        {
            Clause clause = new Clause(select.Parameters, column, sqlOperator, value);

            return(select.Where(clause));
        }
Exemplo n.º 2
0
 public static Select RightJoin(this Select select, string joinOn, string predicate)
 {
     return(Join(select, JoinType.Right, joinOn, predicate));
 }
Exemplo n.º 3
0
 public static Select Join(this Select select, JoinType joinType, string joinTo, string predicate)
 {
     return(select.Join($"{joinType.ToString().ToLowerInvariant()} join {joinTo} on {predicate}"));
 }
Exemplo n.º 4
0
 public static IWhere Where(this Select select, string column, object value)
 {
     return(Where(select, column, SqlOperator.Equal, value));
 }