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

Commit ee3680c

Browse files
committed
Add missing SelectAsync(ISqlExpression) API
1 parent ac91bba commit ee3680c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ServiceStack.OrmLite/OrmLiteReadExpressionsApiAsync.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ public static class OrmLiteReadExpressionsApiAsync
5858

5959
/// <summary>
6060
/// Returns results from using an SqlExpression lambda. E.g:
61-
/// <para>db.Select(db.From&lt;Person&gt;().Where(x =&gt; x.Age &gt; 40))</para>
61+
/// <para>db.SelectAsync(db.From&lt;Person&gt;().Where(x =&gt; x.Age &gt; 40))</para>
6262
/// </summary>
63-
//public static Task<List<T>> SelectAsync<T>(this IDbConnection dbConn, ISqlExpression expression, object anonType, CancellationToken token)
64-
//{
65-
// return dbConn.Exec(dbCmd => dbCmd.SqlList<T>(expression.SelectInto<T>(), anonType));
66-
//}
63+
public static Task<List<T>> SelectAsync<T>(this IDbConnection dbConn, ISqlExpression expression, object anonType = null, CancellationToken token = default(CancellationToken))
64+
{
65+
return dbConn.Exec(dbCmd => dbCmd.SqlListAsync<T>(expression.SelectInto<T>(), anonType, token));
66+
}
6767

6868
/// <summary>
6969
/// Returns a single result from using a LINQ Expression. E.g:

0 commit comments

Comments
 (0)