public void DeleteAll() { using (connection.Lock()) { connection.DeleteAll <VideoItem>(); connection.DeleteAll <StreamMedia>(); } }
public void DeleteAll() { using (connection.Lock()) { connection.DeleteAll <ArtistItem>(); connection.DeleteAll <AlbumItem>(); connection.DeleteAll <TrackItem>(); connection.DeleteAll <TracklistItem>(); connection.DeleteAll <PlaylistItem>(); } }
public void DeleteAll() { using (connection.Lock()) { connection.DeleteAll <BackgroundTrackItem>(); } }
public void DeleteAll <T>() { using (Connection.Lock()) { Connection.DeleteAll <T>(); } }
public Task <int> DeleteAllAsync <T>() { return(Task.Factory.StartNew(() => { SQLiteConnectionWithLock conn = GetConnection(); using (conn.Lock()) { return conn.DeleteAll <T>(); } }, CancellationToken.None, _taskCreationOptions, _taskScheduler ?? TaskScheduler.Default)); }
public Task <int> DeleteAllAsync <T>() { return(_taskFactory.StartNew(() => { SQLiteConnectionWithLock conn = GetConnection(); using (conn.Lock()) { return conn.DeleteAll <T>(); } })); }