SqlHydra.Cli v2.6.0
😺 Generating types for a netstandard
project will now automatically generate "legacy mode" DateTime
and TimeSpan
instead of using DateOnly
and TimeOnly
types.
😺 New selectTask
and selectAsync
computation expressions are now generated to work with your generated HydraReader.Read
and table types.
Previously, you had to manually pass in the generated HydraReader.Read
method to your selectTask
and selectAsync
builders:
open SqlHydra.Query
open AdventureWorks.Generated
let getErrorNumbers () =
selectTask HydraReader.Read openContext {
for e in dbo.ErrorLog do
select e.ErrorNumber
}
Now, you can use the generated versions which have the HydraReader.Read
method baked-in:
open SqlHydra.Query
open AdventureWorks.Generated
open AdventureWorks.Generated.HydraBuilders // Generated builders are here
let getErrorNumbers () =
selectTask openContext {
for e in dbo.ErrorLog do
select e.ErrorNumber
}