Ejemplo n.º 1
0
 /// <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 };
 }
Ejemplo n.º 2
0
 /// <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;
 }
Ejemplo n.º 3
0
 public int RecordsCount(string tableName, QueryNode condition)
 {
     return(Select(tableName, condition).Length);
 }
Ejemplo n.º 4
0
 /// <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;
 }