.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    ExecuteCommandAsync Method

    ExecuteCommandAsync(ISqlService, String, 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<Int64>

    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(CancellationToken))
    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<Int64>

    The number of rows affected byt the command.

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