fix: specify generic
This commit is contained in:
parent
7eed044713
commit
6df46d3c2b
|
@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection<ReadOnly>) (cancellationTo
|
||||||
}
|
}
|
||||||
|
|
||||||
let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task {
|
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
|
return result |> Option.fromMaybe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ let querySingle<'a> (connection : IDatabaseConnection<ReadWrite>) (cancellationT
|
||||||
}
|
}
|
||||||
|
|
||||||
let tryQueryFirst<'a> (connection : ReadOnly IDatabaseConnection) (cancellationToken : CancellationToken) (sql : string) (parms : (string * obj) seq) = task {
|
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
|
return result |> Option.fromMaybe
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user