/// <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)); }
/// <summary> /// select sql /// </summary> /// <param name="Search"></param> /// <returns></returns> public Search AddSelect(Search Search) { return(AddSelect(Search, null)); }
/// <summary> /// select sql /// </summary> /// <param name="fromSection"></param> /// <returns></returns> public new Search <T> AddSelect(Search fromSection) { return(AddSelect(fromSection, null)); }
/// <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)); }
public Search <T> InnerJoin(Search fs) { return(Join(EntityCache.GetTableName <T>(), EntityCache.GetUserName <T>(), where, JoinType.InnerJoin)); }