Esempio n. 1
0
 /// <summary>
 /// Returns a cold observable that compiles a SQL query with
 /// provided bind parameter values, that publishes the rows in the result
 /// set for each subscription.
 /// </summary>
 /// <param name="This">The asynchronous database connection.</param>
 /// <param name="query">The SQL query to compile and Query.</param>
 /// <param name="values">The bind parameter values.</param>
 /// <returns>A cold observable of rows in the result set.</returns>
 public static IObservable <IReadOnlyList <IResultSetValue> > Query(
     this IAsyncDatabaseConnection This, ISqlQuery query, params object[] values)
 {
     Contract.Requires(This != null);
     Contract.Requires(query != null);
     Contract.Requires(values != null);
     return(This.Query(query.ToString(), values));
 }