Esempio n. 1
0
 /// <summary>
 /// 对外提供的检索接口
 /// </summary>
 /// <param name="condition">查询条件</param>
 /// <returns>检索结果</returns>
 public Result Query(SearchCondition condition)
 {
     return(GetSearchResult(condition));
 }
Esempio n. 2
0
 /// <summary>
 /// 真正的检索方法,需要派生类进行实现
 /// </summary>
 /// <param name="condition">查询条件</param>
 /// <returns>检索结果</returns>
 protected abstract Result GetSearchResult(SearchCondition condition);