efcore / EFCore.FSharp

Adds F# design-time support to EF Core
MIT License
234 stars 26 forks source link

DbContextHelpers.fs methods return type obj instead of 'a #140

Closed kirse closed 2 years ago

kirse commented 2 years ago

Reference back to #131 fix which updated these helpers.

On rev-ing to release 6.0.6 it appears the DbContextHelpers.fs helpers return type obj instead of 'a, is this intended?

Ex:

let myBlog = tryFindEntity<Blog> db id
// type of myBlog is now obj instead of Blog

I think this breaks some of the docs here as well: https://efcore.github.io/EFCore.FSharp//How_Tos/Use_DbContextHelpers.html

simon-reynolds commented 2 years ago

Hi @kirse

Thanks for raising this issue, It most certainly was not intended, I've just released 6.0.7 to fix that now