Closed rstm-sf closed 3 years ago
Hi @rstm-sf
Thank you for letting me know about this, I'll have to update that documentation
If you instead define your properties like this, it should work. Turns out that reflection setters in EF don't play nice with Unchecked.defaultof<'a>
[<DefaultValue>]
val mutable private _blogs : DbSet<Blog>
member this.Blogs with get() = this._blogs and set v = this._blogs <- v
Ok, thanks!
Description
Example property for
DbSet
does not work. This bug?https://github.com/efcore/EFCore.FSharp/blob/master/GETTING_STARTED.md#update-the-model
In my option
But work with
Other information