public Task <int> DeleteAsync <T>(T item) { return(Task.Factory.StartNew( () => { SqliteSession conn = this.GetAsyncConnection(); using (conn.Lock()) { return conn.Delete(item); } })); }