/// <summary> /// Inserts items, as lists /// </summary> /// <returns>The or update async.</returns> /// <param name="items">Items.</param> public async System.Threading.Tasks.Task <int> InsertOrUpdateAsync(System.Collections.Generic.List <CommunicationIcon> items) { database.DropTableAsync <CommunicationIcon>().Wait(); database.CreateTableAsync <CommunicationIcon>().Wait(); return(await database?.InsertAllAsync(items)); }
public async Task ClearFavoriteMessages() { var db = new SQLite.SQLiteAsyncConnection(this.DBPath); await db.DropTableAsync<FavoriteMessageSettings>(); await db.CreateTableAsync<FavoriteMessageSettings>(); await refreshFavoriteMessages(); }