From 6df46d3c2b8582e675eaa8677fe0e72287c77b6e Mon Sep 17 00:00:00 2001 From: Kyle Ratti Date: Thu, 5 Sep 2024 23:22:02 -0400 Subject: [PATCH] fix: specify generic --- FruityFoundation.DataAccess.Abstractions.FSharp/ReadOnlyDb.fs | 2 +- FruityFoundation.DataAccess.Abstractions.FSharp/ReadWriteDb.fs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }