public DataTable FindTableTop <T>(int Top, string WhereSql, DbParameter[] parameters) where T : new() { StringBuilder builder = DatabaseCommon.SelectSql <T>(Top); builder.Append(WhereSql); return(DatabaseReader.ReaderToDataTable(DbHelper.ExecuteReader(CommandType.Text, builder.ToString(), parameters))); }
public DataTable FindTable <T>(string WhereSql) where T : new() { StringBuilder builder = DatabaseCommon.SelectSql <T>(); builder.Append(WhereSql); return(DatabaseReader.ReaderToDataTable(DbHelper.ExecuteReader(CommandType.Text, builder.ToString()))); }
public DataTable FindTableTop <T>(int Top) where T : new() { StringBuilder builder = DatabaseCommon.SelectSql <T>(Top); return(DatabaseReader.ReaderToDataTable(DbHelper.ExecuteReader(CommandType.Text, builder.ToString()))); }
public DataTable FindTableBySql(string strSql, DbParameter[] parameters) { return(DatabaseReader.ReaderToDataTable(DbHelper.ExecuteReader(CommandType.Text, strSql.ToString(), parameters))); }
public DataTable FindTableByProc(string procName, DbParameter[] parameters) { return(DatabaseReader.ReaderToDataTable(DbHelper.ExecuteReader(CommandType.StoredProcedure, procName, parameters))); }