TruncateTable() public method

Truncate the table. This means all key-values in the table are dropped.
public TruncateTable ( ) : void
return void
示例#1
0
        public void ResetTables()
        {
            indices.TruncateTable();
            table.TruncateTable();
            tableByNick.TruncateTable();
            tableByBirth.TruncateTable();
            tableByLastLogin.TruncateTable();

            userIDs.Reset();
        }
示例#2
0
        public static Table GetOrCreateEmptyTableAndDatabase(Client client, string dbName, string tableName)
        {
            Table table = GetOrCreateTableAndDatabase(client, dbName, tableName);

            if (table == null)
            {
                return(null);
            }

            table.TruncateTable();

            return(table);
        }