Select() static private method

static private Select ( string tableName, string join, string what, string whereClause, object vars, string orderBy, uint limit ) : List
tableName string
join string
what string
whereClause string
vars object
orderBy string
limit uint
return List
コード例 #1
0
 public List <object[]> Select(string join, string what, string whereClause, object[] vars, string orderBy, uint limit)
 {
     return(SqlController.Select(tableName,
                                 join,
                                 what ?? (join == null ? "*" : tableName + ".*"),
                                 whereClause,
                                 vars,
                                 orderBy,
                                 limit));
 }
コード例 #2
0
ファイル: SqlRow.cs プロジェクト: shashankmishra55/HardlyBot
        private bool RefreshColumnsByUniqueKey(uint value)
        {
            string          whereClause = table.additionalKeyHeaders[value - (table.primaryKeyHeaders?.Length ?? 0)].name + "=?a";
            List <object[]> newValues   = SqlController.Select(table.tableName, null, "*", whereClause, new[] { values[value] }, null, 1);

            if (newValues != null && newValues.Count > 0)
            {
                return(Set(newValues[0]));
            }

            Debug.Fail();
            return(false);
        }