public async Task DropTablesAsync() { try { if (AsyncConnection != null) { await AsyncConnection.DropTableAsync <Vehicle>(); await AsyncConnection.DropTableAsync <VehicleBusRoute>(); await AsyncConnection.DropTableAsync <VehicleFeatureType>(); await AsyncConnection.DropTableAsync <VehicleStatusType>(); await AsyncConnection.DropTableAsync <VehicleType>(); await AsyncConnection.DropTableAsync <VehicleTypeVehicleFeatureType>(); await AsyncConnection.DropTableAsync <VehicleVehicleFeatureType>(); await AsyncConnection.DropTableAsync <LanguageType>(); await AsyncConnection.DropTableAsync <FeedbackType>(); await AsyncConnection.DropTableAsync <FeedbackTypeTranslation>(); await AsyncConnection.DropTableAsync <Feedback>(); await AsyncConnection.DropTableAsync <User>(); await AsyncConnection.DropTableAsync <Location>(); await AsyncConnection.DropTableAsync <ReservationRequest>(); await AsyncConnection.DropTableAsync <Barcode>(); await AsyncConnection.DropTableAsync <BarcodeScanLog>(); await AsyncConnection.DropTableAsync <BarcodeType>(); await AsyncConnection.DropTableAsync <BarcodeTypeTranslation>(); await AsyncConnection.DropTableAsync <BusRoute>(); await AsyncConnection.DropTableAsync <BusRouteStop>(); await AsyncConnection.DropTableAsync <BusRouteTranslation>(); await AsyncConnection.DropTableAsync <GeofenceActivity>(); await AsyncConnection.DropTableAsync <Queue>(); } } catch (Exception ex) { Crashes.TrackError(ex); throw new InvalidOperationException($"Error creating sqlite database tables. {ex.Message}"); } }
public override async Task Drop() { await AsyncConnection.DropTableAsync <Host>(); await AsyncConnection.DropTableAsync <CommandSsh>(); await SetSchemaVersion(0); }
public async Task DropTablesAsync() { try { if (AsyncConnection != null) { await AsyncConnection.DropTableAsync <Location>(); await AsyncConnection.DropTableAsync <ReservationRequest>(); } } catch (Exception ex) { Crashes.TrackError(ex); throw new InvalidOperationException($"Error creating sqlite database tables. {ex.Message}"); } }
public async Task DropTablesAsync() { try { if (AsyncConnection != null) { await AsyncConnection.DropTableAsync <Resource>(); await AsyncConnection.DropTableAsync <ResourceSchedule>(); await AsyncConnection.DropTableAsync <User>(); await AsyncConnection.DropTableAsync <Queue>(); await AsyncConnection.DropTableAsync <PendingResourceSchedule>(); } } catch (Exception ex) { throw new InvalidOperationException($"Error creating sqlite database tables. {ex.Message}"); } }