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

Commit d666061

Browse files
committed
Add missing OpenDbConnectionAsync overload
1 parent 2f48a9c commit d666061

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ServiceStack.OrmLite/OrmLiteConnectionFactory.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ public static IDbConnection Open(this IDbConnectionFactory connectionFactory)
230230
/// <summary>
231231
/// Alias for OpenDbConnectionAsync
232232
/// </summary>
233+
public static Task<IDbConnection> OpenDbConnectionAsync(this IDbConnectionFactory connectionFactory, CancellationToken token = default)
234+
{
235+
return ((OrmLiteConnectionFactory)connectionFactory).OpenDbConnectionAsync(token);
236+
}
233237
public static Task<IDbConnection> OpenAsync(this IDbConnectionFactory connectionFactory, CancellationToken token = default)
234238
{
235239
return ((OrmLiteConnectionFactory)connectionFactory).OpenDbConnectionAsync(token);

0 commit comments

Comments
 (0)