sdk/dotnet/src/Microsoft.Datasync.Client/DatasyncClient.cs
/// <summary>
/// Returns a reference to an offline table, providing typed data
/// operations for that table.
/// </summary>
/// <remarks>
/// If <paramref name="tableName"/> is not specified, the name of the
/// type is used as the table name.
/// </remarks>
/// <typeparam name="T">The type of the data transfer object (model) being used.</typeparam>
/// <param name="tableName">The (optional) name of the table.</param>
/// <returns>A reference to the table.</returns>
Returns a reference to an offline table, providing typed data
operations for that table.
Returns a reference to an offline table providing typed data operations for that table .
public virtual IOfflineTable<T> GetOfflineTable<T>(string tableName = null)
        {
            tableName ??= Serializer.ResolveTableName<T>();
            Arguments.IsValidTableName(tableName, nameof(tableName));
            if (SyncContext == null)
            {
                throw new InvalidOperationException("An offline store must be specified before using offline tables.");
            }
            return new OfflineTable<T>(tableName, this);
        }
public virtual IOfflineTable < T > GetOfflineTable < T > ( string tableName = null ) { tableName ??= Serializer . ResolveTableName < T > ( ) ; Arguments . IsValidTableName ( tableName , nameof ( tableName ) ) ; if ( SyncContext == null ) { throw new InvalidOperationException ( " " ) ; } return new OfflineTable < T > ( tableName , this ) ; }
Returns a reference to an offline table, providing typed data
operations for that table.
Returns a reference to an offline table providing typed data operations for that table .
A reference to the table.
A reference to the table .
tableName
string
The (optional) name of the table.
The ( optional ) name of the table .
remarks
If  is not specified, the name of the
type is used as the table name.
If is not specified the name of the type is used as the table name .
typeparam
The type of the data transfer object (model) being used.
The type of the data transfer object ( model ) being used .