public static DataTable Select(string tableName, params object[] whereColVals) { string sql = UData.ToSelect(tableName, whereColVals); DataTable table = SqlHelper.ExecuteDataset(Config.ConnectionString, CommandType.Text, sql).Tables[0]; table.TableName = tableName; return(table); }
public static TC SelectItems(InfiChess tableName, params object[] whereColVals) { string s = UData.ToSelect(tableName, whereColVals); return(SelectItems(tableName.ToString(), s)); }