.NET Client Documentation
5.3.0
Search Results for

    Show / Hide Table of Contents

    ExecuteCommandAsync Method

    ExecuteCommandAsync(ISqlService, string, params object[])

    Executes an SQL command.

    Declaration
    public static Task<long> ExecuteCommandAsync(this ISqlService service, string sql, params object[] parameters)
    Parameters
    ISqlService service

    The ISqlService which executes the command.

    string sql

    The SQL command text to execute.

    object[] parameters

    Parameters for the SQL command.

    Returns
    Task<long>

    The number of rows affected byt the command.

    ExecuteCommandAsync(ISqlService, string, SqlStatementOptions, CancellationToken)

    Executes an SQL command.

    Declaration
    public static Task<long> ExecuteCommandAsync(this ISqlService service, string sql, SqlStatementOptions options, CancellationToken cancellationToken = default)
    Parameters
    ISqlService service

    The ISqlService which executes the command.

    string sql

    The SQL command text to execute.

    SqlStatementOptions options

    Options for the SQL command.

    CancellationToken cancellationToken

    A cancellation token.

    Returns
    Task<long>

    The number of rows affected byt the command.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.