Skip to content

SqlHelper.ExecuteNonQuery method

Executes the statement.

public static int ExecuteNonQuery(IDbConnection connection, string commandText, 
    IDictionary<string, object?>? param = null, ILogger? logger = null)
parameter description
connection The connection.
commandText The command text.
param The parameters.
logger The logger.

Return Value

The number of affected rows.

See Also