public Task ClearLogs() { APIServer.Delete("LxClearx"); _connection.DropTableAsync <EntryLog>().Wait(); _connection.CreateTableAsync <EntryLog>().Wait(); return(Task.CompletedTask); }
public Task ClearAnalytics() { APIServer.Delete("RxClearx"); _connection.DropTableAsync <AnalyticsLog>().Wait(); _connection.CreateTableAsync <AnalyticsLog>().Wait(); return(Task.CompletedTask); }
public Task ClearVessel() { APIServer.Delete("VxClearx"); _connection.DropTableAsync <Vessel>().Wait(); _connection.CreateTableAsync <Vessel>().Wait(); return(Task.CompletedTask); }
public Task ClearUnit() { APIServer.Delete("UxClearx"); _connection.DropTableAsync <Unit>().Wait(); _connection.CreateTableAsync <Unit>().Wait(); return(Task.CompletedTask); }
public Task ClearWorker() { APIServer.Delete("WxClearx"); _connection.DropTableAsync <Worker>().Wait(); _connection.CreateTableAsync <Worker>().Wait(); Globals.NFCtempcount = 100; return(Task.CompletedTask); }
public Task <int> DeleteVessel(int ident) { APIServer.Delete("V" + ident); return(_connection.DeleteAsync <Vessel>(ident)); }
//Delete individual IDs from database list public Task <int> DeleteUnit(Unit unit) { APIServer.Delete("U" + unit.UnitID); return(_connection.DeleteAsync <Unit>(unit.UnitID)); }