sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/OfflineSQLiteStore.cs
/// <summary>
/// Executes a SQL statement that does not produce any output.
/// </summary>
/// <param name="sqlStatement">The SQL statement to execute.</param>
/// <param name="parameters">The parameters that are referenced in the SQL statement.</param>
Executes a SQL statement that does not produce any output.
Executes a SQL statement that does not produce any output .
protected void ExecuteNonQueryInternal(string sqlStatement, Dictionary<string, object> parameters = null)
        {
            Arguments.IsNotNullOrWhitespace(sqlStatement, nameof(sqlStatement));
            parameters ??= new();
            using SqliteStatement stmt = DbConnection.PrepareStatement(sqlStatement);
            stmt.BindParameters(parameters);
            stmt.ExecuteNonQuery();
        }
protected void ExecuteNonQueryInternal ( string sqlStatement , Dictionary < string , object > parameters = null ) { Arguments . IsNotNullOrWhitespace ( sqlStatement , nameof ( sqlStatement ) ) ; parameters ??= new ( ) ; using SqliteStatement stmt = DbConnection . PrepareStatement ( sqlStatement ) ; stmt . BindParameters ( parameters ) ; stmt . ExecuteNonQuery ( ) ; }
Executes a SQL statement that does not produce any output.
Executes a SQL statement that does not produce any output .
sqlStatement
string
The SQL statement to execute.
The SQL statement to execute .
parameters
Dictionary<string, object>
The parameters that are referenced in the SQL statement.
The parameters that are referenced in the SQL statement .