-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional properties requiring manual configuration when adding migration #24
Comments
This can be resolved by adding the following to type MyContext (options) =
inherit DbContext (options)
override __.OnModelCreating mb =
mb.Entity<MyEntity>().Property(fun s -> s.OptionalProperty).HasConversion(OptionConverter<string> ()) |> ignore Having to manually add it to for each optional property in an entire domain could be a long task |
We should be able to provide a cc @ajcvickers |
Could it be that this feature broke recently? I'm currently trying to debug why the extension method does not catch |
An
option
type indicates nullability, it is not to be interpreted as an entity type by itselfThe text was updated successfully, but these errors were encountered: