Open RicoSaupeBosch opened 1 week ago
selectAsync
and selectTask
allow you to implicitly pass in an openContext
function or an existing "Shared" context.
F# now allows implicit conversion but you have to opt in by disabling the warning
So, if you want the simpler, implicit context, you should add the #nowarn
directive.
Otherwise, you can explicitly wrap it in the ContextType
discriminated union:
selectAsync HydraReader.Read (Create openContext) {
for s in dbo.Systems do
select s
}
Thanks that was it. Could I have seen that in some documentation of yours? I may have overlooked it.
No, that is not in the docs.
I am trying out the selectTask example exactly as in the documentation on a net8.0 console application. I am getting a warning which i cannot figure out. Am I missing something or do I really have to add nowarn?
these are my references
the warning