public async ValueTask <INorm> ExecuteAsync(string command) { await using var cmd = Connection.CreateCommand(); SetCommand(cmd, command); await Connection.EnsureIsOpenAsync(cancellationToken); await(await PrepareAsync(cmd)).ExecuteNonQueryWithOptionalTokenAsync(cancellationToken); return(this); }
public async ValueTask <INorm> ExecuteAsync(string command, params object[] parameters) { await using var cmd = Connection.CreateCommand(); SetCommand(cmd, command); await Connection.EnsureIsOpenAsync(cancellationToken); await cmd.AddParameters(parameters).ExecuteNonQueryWithOptionalTokenAsync(cancellationToken); return(this); }
public async ValueTask <INorm> ExecuteAsync(string command) { await using var cmd = Connection.CreateCommand(); SetCommand(cmd, command); await Connection.EnsureIsOpenAsync(); await cmd.ExecuteNonQueryAsync(); OnCommandExecuted(cmd); return(this); }