sdk/dotnet/test/Microsoft.Datasync.Client.Test/Table/Operations.OfflineTableOfT/BaseOperationTest.cs
/// <summary>
/// Stores the item provided in the table.
/// </summary>
/// <typeparam name="T">The type of the item.</typeparam>
/// <param name="tableName">The name of the table.</param>
/// <param name="item">The item to store.</param>
Stores the item provided in the table.
Stores the item provided in the table .
public JObject StoreInTable<T>(string tableName, T item)
        {
            var instance = (JObject)GetMockClient().Serializer.Serialize(item);
            store.Upsert(tableName, new[] { instance });
            return instance;
        }
public JObject StoreInTable < T > ( string tableName , T item ) { var instance = ( JObject ) GetMockClient ( ) . Serializer . Serialize ( item ) ; store . Upsert ( tableName , new [ ] { instance } ) ; return instance ; }
Stores the item provided in the table.
Stores the item provided in the table .
tableName
string
The name of the table.
The name of the table .
item
T
The item to store.
The item to store .
typeparam
The type of the item.
The type of the item .