Exemple #1
0
 /// <summary>
 /// Adding custom and filter/statement with hardcoded values or
 /// pass in an object with properties named the same as you parameters minus the "@" sign.
 /// </summary>
 /// <param name="whereSql">Custom where filter/statement</param>
 /// <param name="whereValues">Parameter values for custom filter/statement</param>
 /// <returns></returns>
 public IMereDeletePost <T> Or(string whereSql, object whereValues = null)
 {
     QueryContext.AddFilter(whereSql, whereValues, true);
     return(this);
 }
Exemple #2
0
 public IMereDeletePost <T> Where(string whereSql, object whereValues = null)
 {
     QueryContext.AddFilter(whereSql, whereValues);
     return(Parent._post);
 }
Exemple #3
0
 public IMereUpdatePost <T> Where(string whereSql, object whereValues = null)
 {
     QueryContext.CurFilterOr = false;
     QueryContext.AddFilter(whereSql, whereValues);
     return(Parent._post);
 }
Exemple #4
0
 /// <summary>
 /// Adding custom and filter/statement with hardcoded values or
 /// pass in an object with properties named the same as you parameters minus the "@" sign.
 /// </summary>
 /// <param name="whereSql">Custom where filter/statement</param>
 /// <param name="whereValues">Parameter values for custom filter/statement</param>
 /// <returns></returns>
 public IMereUpdatePost <T> And(string whereSql, object whereValues = null)
 {
     QueryContext.CurFilterOr = false;
     QueryContext.AddFilter(whereSql, whereValues);
     return(this);
 }
Exemple #5
0
 /// <summary>
 /// Adding custom and filter/statement with hardcoded values or
 /// pass in an object with properties named the same as you parameters minus the "@" sign.
 /// </summary>
 /// <param name="whereSql">Custom where filter/statement</param>
 /// <param name="whereValues">Parameter values for custom filter/statement</param>
 /// <returns></returns>
 public IMereQueryPost <T> And(string whereSql, object whereValues = null)
 {
     QueryContext.AddFilter(whereSql, whereValues);
     return(this);
 }