Beispiel #1
0
        /// <summary>
        /// Creates a new SELECT command.
        /// </summary>
        /// <param name="tableType">The main table to be used in the select.</param>
        /// <param name="selectAllColumns">Whether to add all columns in this table type to the select.</param>
        public static BuiltSelectCommand Select(Type tableType, bool selectAllColumns = true)
        {
            if (!Initialized)
            {
                throw new Exception("Configure() must be called before building commands.");
            }
            var bsc = new BuiltSelectCommand();

            bsc.AddTable(tableType, selectAllColumns);
            return(bsc);
        }
Beispiel #2
0
 internal BuiltSqlSort(BuiltSelectCommand parent)
 {
     _parent = parent;
     _sortingParametersAscending  = new List <string>();
     _sortingParametersDescending = new List <string>();
 }