/// <summary> /// Initializes a new instance of the QueryNegationNode that wraps specified node /// </summary> /// <param name="node">condition node to negate</param> public QueryNegationNode(QueryNode node) { SingleNodeList = new QueryNode[] { node }; }
/// <summary> /// Initializes a new instance of the Query with specified table and condition /// </summary> /// <param name="table">target table</param> /// <param name="condition">condition represented by QueryNode</param> public Query(QTable table, QueryNode condition) { _Table = table; Condition = condition; }
public int RecordsCount(string tableName, QueryNode condition) { return(Select(tableName, condition).Length); }
/// <summary> /// Initializes a new instance of the Query with specified table name and condition node /// </summary> /// <param name="tableName">target table name</param> /// <param name="condition">condition represented by QueryNode</param> public Query(string tableName, QueryNode condition) { _Table = tableName; Condition = condition; }