Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public static TC SelectItems(InfiChess tableName, params object[] whereColVals)
        {
            string s = UData.ToSelect(tableName, whereColVals);

            return(SelectItems(tableName.ToString(), s));
        }