sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/OfflineSQLiteStore.cs
/// <summary>
/// Obtains the table definition for a defined table, or throws if not available.
/// </summary>
/// <param name="tableName">The name of the table.</param>
/// <returns>The table definition</returns>
/// <exception cref="InvalidOperationException">If the table is not defined.</exception>
Obtains the table definition for a defined table, or throws if not available.
Obtains the table definition for a defined table or throws if not available .
private TableDefinition GetTableOrThrow(string tableName)
        {
            if (tableMap.TryGetValue(tableName, out TableDefinition table))
            {
                return table;
            }
            throw new InvalidOperationException($"Table '{tableName}' is not defined.");
        }
private TableDefinition GetTableOrThrow ( string tableName ) { if ( tableMap . TryGetValue ( tableName , out TableDefinition table ) ) { return table ; } throw new InvalidOperationException ( $" Table ' { tableName } ' is not defined. " ) ; }
Obtains the table definition for a defined table, or throws if not available.
Obtains the table definition for a defined table or throws if not available .
The table definition
The table definition
If the table is not defined.
If the table is not defined .
tableName
string
The name of the table.
The name of the table .