Skip to content

Instantly share code, notes, and snippets.

@thefringeninja
Created August 16, 2014 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefringeninja/cc19e7259f85cca07c64 to your computer and use it in GitHub Desktop.
Save thefringeninja/cc19e7259f85cca07c64 to your computer and use it in GitHub Desktop.
public static Task<DbDataReader> ExecuteReaderAsync(this IDbCommand dbCommand) {
var command = dbCommand as DbCommand;
if (command == null) throw new ArgumentException("dbCommand");
return command.ExecuteReaderAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment