Пример #1
0
 /// <summary>
 /// 建立一个Where嵌套查询
 /// </summary>
 /// <param name="nested">嵌套查询</param>
 /// <param name="linker">链接标识</param>
 /// <returns>查询器</returns>
 public IDataTableSelector Where(Action <IDataTableSelector> nested, SelectorLinker linker = SelectorLinker.And)
 {
     selector = new DataTableSelector(this);
     return(selector.Where(nested, linker));
 }
Пример #2
0
 /// <summary>
 /// 建立一个Where查询
 /// </summary>
 /// <param name="field">字段名</param>
 /// <param name="operators">操作符</param>
 /// <param name="val">值</param>
 /// <param name="linker">语句链接符</param>
 /// <returns>查询器</returns>
 public IDataTableSelector Where(string field, string operators, string val, SelectorLinker linker = SelectorLinker.And)
 {
     selector = new DataTableSelector(this);
     return(selector.Where(field, operators, val, linker));
 }