Skip to content

Commit 85b02de

Browse files
Add DeleteAllAsync
1 parent 27f58fb commit 85b02de

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
@@ -159,6 +159,18 @@ public Task<int> DeleteAsync (object item)
159159
});
160160
}
161161

162+
public Task<int> DeleteAllAsync<T>()
163+
{
164+
return Task.Factory.StartNew(() =>
165+
{
166+
var conn = GetConnection();
167+
using (conn.Lock())
168+
{
169+
return conn.DeleteAll<T>();
170+
}
171+
});
172+
}
173+
162174
public Task<T> GetAsync<T>(object pk)
163175
where T : new()
164176
{

0 commit comments

Comments
 (0)