Пример #1
0
 /// <summary>
 ///  To DataReader
 /// </summary>
 /// <param name="from"></param>
 /// <returns></returns>
 protected IDataReader ToDataReader(Search from)
 {
     return(trans == null
         ? _database.ExecuteReader(CreateDbCommand(@from))
         : _database.ExecuteReader(CreateDbCommand(@from), trans));
 }
Пример #2
0
 /// <summary>
 /// select sql
 /// </summary>
 /// <param name="Search"></param>
 /// <returns></returns>
 public Search AddSelect(Search Search)
 {
     return(AddSelect(Search, null));
 }
Пример #3
0
 /// <summary>
 /// select sql
 /// </summary>
 /// <param name="fromSection"></param>
 /// <returns></returns>
 public new Search <T> AddSelect(Search fromSection)
 {
     return(AddSelect(fromSection, null));
 }
Пример #4
0
 /// <summary>
 /// select sql
 /// </summary>
 /// <param name="fromSection"></param>
 /// <param name="aliasName">别名</param>
 /// <returns></returns>
 public new Search <T> AddSelect(Search fromSection, string aliasName)
 {
     return((Search <T>)base.AddSelect(fromSection, aliasName));
 }
Пример #5
0
 public Search <T> InnerJoin(Search fs)
 {
     return(Join(EntityCache.GetTableName <T>(), EntityCache.GetUserName <T>(), where, JoinType.InnerJoin));
 }