예제 #1
0
파일: MereDelete.cs 프로젝트: ksc4130/Mere
 /// <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);
 }
예제 #2
0
파일: MereDelete.cs 프로젝트: ksc4130/Mere
 public IMereDeletePost <T> Where(string whereSql, object whereValues = null)
 {
     QueryContext.AddFilter(whereSql, whereValues);
     return(Parent._post);
 }
예제 #3
0
 public IMereUpdatePost <T> Where(string whereSql, object whereValues = null)
 {
     QueryContext.CurFilterOr = false;
     QueryContext.AddFilter(whereSql, whereValues);
     return(Parent._post);
 }
예제 #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);
 }
예제 #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);
 }