string GetSelectTableName(QTable table) { if (!String.IsNullOrEmpty(table.Alias)) { return(table.Name + " " + table.Alias); } return(table.Name); }
public virtual string BuildTableName(QTable tbl) { var tblName = BuildIdentifier(tbl.Name); if (!String.IsNullOrEmpty(tbl.Alias)) { tblName += " " + BuildIdentifier(tbl.Alias); } return(tblName); }
/// <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); } }
/// <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; }
/// <summary> /// Initializes a new instance of the Query with specified table /// </summary> /// <param name="table">target table</param> public Query(QTable table) { _Table = table; }