示例#1
0
 /// <summary>
 ///     Executes the specified query (SQL) and returns the results as a <see cref="ICursor" />
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="commandText">The command text.</param>
 /// <returns>Returns a <see cref="ICursor" /> representing the results of the query.</returns>
 /// <exception cref="System.NotSupportedException"></exception>
 public static ICursor ExecuteReaderAsync(this IWorkspace source, string commandText)
 {
     return(Task.Wait(() => source.ExecuteReader(commandText)));
 }