sdk/dotnet/test/Datasync.Common.Test/Mocks/MockOfflineStore.cs
/// <summary>
/// Upserts items into the specified table.
/// </summary>
/// <param name="tableName">Name of the table.</param>
/// <param name="items">The items.</param>
Upserts items into the specified table.
Upserts items into the specified table .
public void Upsert(string tableName, IEnumerable<JObject> items)
        {
            var table = GetOrCreateTable(tableName);
            foreach (JObject item in items)
            {
                var id = ServiceSerializer.GetId(item);
                table[id] = item;
            }
        }
public void Upsert ( string tableName , IEnumerable < JObject > items ) { var table = GetOrCreateTable ( tableName ) ; foreach ( JObject item in items ) { var id = ServiceSerializer . GetId ( item ) ; table [ id ] = item ; } }
Upserts items into the specified table.
Upserts items into the specified table .
tableName
string
Name of the table.
Name of the table .
items
IEnumerable<JObject>
None