Exemplo n.º 1
0
        public async Task <IActionResult> ClearDb()
        {
            await _sqliteDb.ClearDatabase();

            await _sqliteDb.Vacuum();

            return(Ok());
        }
Exemplo n.º 2
0
        public async Task OnPostClearBaseAsync()
        {
            await _sqliteDb.ClearDatabase();

            await _sqliteDb.Vacuum();

            DeletedEntities = await _sqliteDb.GetDeletedEntitiesInfo();

            DatabaseInfo = _sqliteDb.GetSqliteDatabaseInfo();
        }