Skip to content

Commit 0e056e7

Browse files
authored
Merge pull request #298 from thomaslevesque/extraasyncmethods
Added two new methods to SqliteAsyncConnection
2 parents 0772010 + 85b02de commit 0e056e7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/SQLiteAsync.cs

+12
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,18 @@ public Task<int> DeleteAsync (object item)
166166
});
167167
}
168168

169+
public Task<int> DeleteAllAsync<T>()
170+
{
171+
return Task.Factory.StartNew(() =>
172+
{
173+
var conn = GetConnection();
174+
using (conn.Lock())
175+
{
176+
return conn.DeleteAll<T>();
177+
}
178+
});
179+
}
180+
169181
public Task<T> GetAsync<T>(object pk)
170182
where T : new()
171183
{

0 commit comments

Comments
 (0)