Skip to content

Commit b444d6e

Browse files
fix wrong overload
1 parent 5cdbb28 commit b444d6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SqlKata.Execution/QueryFactory.Extensions.Async.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static async Task<IEnumerable<dynamic>> GetAsync(this QueryFactory db, Qu
8484

8585
public static async Task<T> FirstOrDefaultAsync<T>(this QueryFactory db, Query query)
8686
{
87-
var list = await GetAsync(db, query.Limit(1));
87+
var list = await GetAsync<T>(db, query.Limit(1));
8888

8989
return list.ElementAtOrDefault(0);
9090
}

SqlKata.Execution/QueryFactory.Extensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public static dynamic FirstOrDefault(this QueryFactory db, Query query)
8989

9090
public static T First<T>(this QueryFactory db, Query query)
9191
{
92-
var item = FirstOrDefault(db, query);
92+
var item = FirstOrDefault<T>(db, query);
9393

9494
if (item == null)
9595
{

0 commit comments

Comments
 (0)