/// <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)); }
/// <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="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); }
/// <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); }