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