diff --git a/FruityFoundation.DataAccess.Abstractions.FSharp/ReadOnlyDb.fs b/FruityFoundation.DataAccess.Abstractions.FSharp/ReadOnlyDb.fs index f7a91c9..73e1b1b 100644 --- a/FruityFoundation.DataAccess.Abstractions.FSharp/ReadOnlyDb.fs +++ b/FruityFoundation.DataAccess.Abstractions.FSharp/ReadOnlyDb.fs @@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection) (cancellationTo } let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task { - let! result = connection.TryQueryFirst(sql, parms |> toKeyValuePair, cancellationToken) + let! result = connection.TryQueryFirst<'a>(sql, parms |> toKeyValuePair, cancellationToken) return result |> Option.fromMaybe } diff --git a/FruityFoundation.DataAccess.Abstractions.FSharp/ReadWriteDb.fs b/FruityFoundation.DataAccess.Abstractions.FSharp/ReadWriteDb.fs index 7aa168f..fe51c1b 100644 --- a/FruityFoundation.DataAccess.Abstractions.FSharp/ReadWriteDb.fs +++ b/FruityFoundation.DataAccess.Abstractions.FSharp/ReadWriteDb.fs @@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection) (cancellationT } let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task { - let! result = connection.TryQueryFirst(sql, parms |> toKeyValuePair, cancellationToken) + let! result = connection.TryQueryFirst<'a>(sql, parms |> toKeyValuePair, cancellationToken) return result |> Option.fromMaybe }