public QueryOrderer(string foreignTable, string column, Ordering ordering, NullPosition nullPosition) { ForeignTable = foreignTable; Column = column; Ordering = ordering; NullPosition = nullPosition; }
/// <summary> /// Adds an ordering to the current query args. /// </summary> /// <param name="foreignTable"></param> /// <param name="column"></param> /// <param name="ordering"></param> /// <param name="nullPosition"></param> /// <returns></returns> public Table <T> Order(string foreignTable, string column, Ordering ordering, NullPosition nullPosition = NullPosition.First) { orderers.Add(new QueryOrderer(foreignTable, column, ordering, nullPosition)); return(this); }