sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/OfflineSQLiteStore.cs
/// <summary>
/// Deletes items from the table where the items are identified by a query.
/// </summary>
/// <param name="query">A query description that identifies the items to be deleted.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that completes when the items have been deleted from the table.</returns>
Deletes items from the table where the items are identified by a query.
Deletes items from the table where the items are identified by a query .
public override async Task DeleteAsync(QueryDescription query, CancellationToken cancellationToken = default)
        {
            Arguments.IsNotNull(query, nameof(query));
            await EnsureInitializedAsync(cancellationToken).ConfigureAwait(false);
            _ = GetTableOrThrow(query.TableName); 
            string sql = SqlStatements.DeleteFromTable(query, out Dictionary<string, object> parameters);
            using (operationLock.AcquireLock())
            {
                ExecuteNonQueryInternal(sql, parameters);
            }
        }
public override async Task DeleteAsync ( QueryDescription query , CancellationToken cancellationToken = default ) { Arguments . IsNotNull ( query , nameof ( query ) ) ; await EnsureInitializedAsync ( cancellationToken ) . ConfigureAwait ( false ) ; _ = GetTableOrThrow ( query . TableName ) ; string sql = SqlStatements . DeleteFromTable ( query , out Dictionary < string , object > parameters ) ; using ( operationLock . AcquireLock ( ) ) { ExecuteNonQueryInternal ( sql , parameters ) ; } }
Deletes items from the table where the items are identified by a query.
Deletes items from the table where the items are identified by a query .
// Validate that the table exists.
A task that completes when the items have been deleted from the table.
A task that completes when the items have been deleted from the table .
query
QueryDescription
A query description that identifies the items to be deleted.
A query description that identifies the items to be deleted .
cancellationToken
CancellationToken
A  to observe.
A to observe .