Пример #1
0
 string GetSelectTableName(QTable table)
 {
     if (!String.IsNullOrEmpty(table.Alias))
     {
         return(table.Name + " " + table.Alias);
     }
     return(table.Name);
 }
Пример #2
0
        public virtual string BuildTableName(QTable tbl)
        {
            var tblName = BuildIdentifier(tbl.Name);

            if (!String.IsNullOrEmpty(tbl.Alias))
            {
                tblName += " " + BuildIdentifier(tbl.Alias);
            }
            return(tblName);
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the Query with identical options of specified query
 /// </summary>
 /// <param name="q">query with options to copy</param>
 public Query(Query q)
 {
     _Table        = q.Table;
     _Sort         = q.Sort;
     _RecordOffset = q.RecordOffset;
     _RecordCount  = q.RecordCount;
     Condition     = q.Condition;
     _Fields       = q.Fields;
     if (q.ExtendedProperties != null)
     {
         ExtendedProperties = new Dictionary <string, object>(q.ExtendedProperties);
     }
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the Query with specified table and condition
 /// </summary>
 /// <param name="table">target table</param>
 /// <param name="condition">conditions root node</param>
 public Query(QTable table, QNode condition)
 {
     _Table    = table;
     Condition = condition;
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the Query with specified table
 /// </summary>
 /// <param name="table">target table</param>
 public Query(QTable table)
 {
     _Table = table;
 }