Esempio n. 1
0
 public static Condition Where(this string sql, IConditionOperater op, string placeholder = "#where#")
 {
     return(new Condition(sql, placeholder, op));
 }
Esempio n. 2
0
 public Condition Or(IConditionOperater op)
 {
     _SB.Append($" Or {op.ToString()}");
     return(this);
 }
Esempio n. 3
0
 public static IConditionOperater Not(this IConditionOperater op)
 {
     return(new PrefixConditionOperater("NOT", op.ToString()));
 }
Esempio n. 4
0
 public Condition(string sql, string placeholder, IConditionOperater op)
 {
     _Sql         = sql;
     _Placeholder = placeholder;
     _SB.Append($" {op.ToString()}");
 }