sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/OfflineSQLiteStore.cs
/// <summary>
/// Defines the local table in the persistent store.
/// </summary>
/// <param name="tableName">The name of the local table.</param>
/// <param name="tableDefinition">The definition of the table.</param>
Defines the local table in the persistent store.
Defines the local table in the persistent store .
public override void DefineTable(string tableName, JObject tableDefinition)
        {
            Arguments.IsValidTableName(tableName, true, nameof(tableName));
            Arguments.IsNotNull(tableDefinition, nameof(tableDefinition));
            if (Initialized)
            {
                throw new InvalidOperationException("Cannot define a table after the offline store has been initialized.");
            }
            tableMap.Add(tableName, new TableDefinition(tableName, tableDefinition));
        }
public override void DefineTable ( string tableName , JObject tableDefinition ) { Arguments . IsValidTableName ( tableName , true , nameof ( tableName ) ) ; Arguments . IsNotNull ( tableDefinition , nameof ( tableDefinition ) ) ; if ( Initialized ) { throw new InvalidOperationException ( " " ) ; } tableMap . Add ( tableName , new TableDefinition ( tableName , tableDefinition ) ) ; }
Defines the local table in the persistent store.
Defines the local table in the persistent store .
tableName
string
The name of the local table.
The name of the local table .
tableDefinition
JObject
The definition of the table.
The definition of the table .