sdk/dotnet/test/Datasync.Common.Test/Mocks/MockOfflineStore.cs
/// <summary>
/// Deletes items from the table where the items are identified by their ID.
/// </summary>
/// <param name="tableName">The name of the table where the items are located.</param>
/// <param name="ids">A list of IDs to delete.</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 their ID.
Deletes items from the table where the items are identified by their ID .
public Task DeleteAsync(string tableName, IEnumerable<string> ids, CancellationToken cancellationToken = default)
        {
            if (ExceptionToThrow != null)
            {
                throw ExceptionToThrow;
            }
            var table = GetOrCreateTable(tableName);
            foreach (string id in ids)
            {
                table.Remove(id);
            }
            return Task.CompletedTask;
        }
public Task DeleteAsync ( string tableName , IEnumerable < string > ids , CancellationToken cancellationToken = default ) { if ( ExceptionToThrow != null ) { throw ExceptionToThrow ; } var table = GetOrCreateTable ( tableName ) ; foreach ( string id in ids ) { table . Remove ( id ) ; } return Task . CompletedTask ; }
Deletes items from the table where the items are identified by their ID.
Deletes items from the table where the items are identified by their ID .
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 .
tableName
string
The name of the table where the items are located.
The name of the table where the items are located .
ids
IEnumerable<string>
A list of IDs to delete.
A list of IDs to delete .
cancellationToken
CancellationToken
A  to observe.
A to observe .