Пример #1
0
        /// <summary>
        /// This method is intended to respond to client side Qi queries.
        /// Use of this method from .Net should be avoided in favor of
        /// one of the methods that take a delegate of type
        /// WhereDelegate<ListColumns>.
        /// </summary>
        /// <param name="where"></param>
        /// <param name="db"></param>
        public static List OneWhere(QiQuery where, Database db = null)
        {
            var results = new ListCollection(db, Select <ListColumns> .From <List>().Where(where, db));

            return(OneOrThrow(results));
        }
Пример #2
0
        /// <summary>
        /// This method is intended to respond to client side Qi queries.
        /// Use of this method from .Net should be avoided in favor of
        /// one of the methods that take a delegate of type
        /// WhereDelegate&lt;ListColumns&gt;.
        /// </summary>
        /// <param name="where"></param>
        /// <param name="database"></param>
        public static ListCollection Where(QiQuery where, Database database = null)
        {
            var results = new ListCollection(database, Select <ListColumns> .From <List>().Where(where, database));

            return(results);
        }
Пример #3
0
        /// <summary>
        /// Execute a query and return the results.
        /// </summary>
        /// <param name="where">A WhereDelegate that recieves a ListColumns
        /// and returns a IQueryFilter which is the result of any comparisons
        /// between ListColumns and other values
        /// </param>
        /// <param name="orderBy">
        /// Specifies what column and direction to order the results by
        /// </param>
        /// <param name="db"></param>
        public static ListCollection Where(WhereDelegate <ListColumns> where, OrderBy <ListColumns> orderBy = null, Database db = null)
        {
            var results = new ListCollection(db, new Query <ListColumns, List>(where, orderBy, db), true);

            return(results);
        }