public static async Task <int> CommandAsync(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) { using (var cmd = (DbCommand)CommandFactory.CreateCommand(connection, command.Value, config)) {
public static IEnumerable <T> Query <T>(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) where T : new() { using (var cmd = CommandFactory.CreateCommand(connection, command.Value, config)) {
public static async Task <T> QuerySingleAsync <T>(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) where T : new() { using (var cmd = (DbCommand)CommandFactory.CreateCommand(connection, command.Value, config)) {
public static dynamic QuerySingle(this IDbConnection connection, NonFormattableString command, object parameters = null, CommandConfiguration config = null) { using (var cmd = CommandFactory.CreateCommand(connection, command.Value, config)) {