Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 9b3c945

Browse files
authored
Fix the 'EndExecuteNonQuery' asynchronous concurrent execution (#661)
1 parent e29e8df commit 9b3c945

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ServiceStack.OrmLite/UntypedApi.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public TReturn Exec<TReturn>(Func<IDbCommand, TReturn> filter)
4848
return DbCmd != null ? filter(DbCmd) : Db.Exec(filter);
4949
}
5050

51+
public Task<TReturn> Exec<TReturn>(Func<IDbCommand, Task<TReturn>> filter)
52+
{
53+
return DbCmd != null ? filter(DbCmd) : Db.Exec(filter);
54+
}
55+
5156
public void Exec(Action<IDbCommand> filter)
5257
{
5358
if (DbCmd != null)

0 commit comments

Comments
 (0)