andrewlock / StronglyTypedId

A Rosyln-powered generator for strongly-typed IDs
MIT License
1.52k stars 80 forks source link

[Sugestion] Add Parameterless Constructor to EfCoreValueConverter #50

Closed LeonLeitheusser closed 2 years ago

LeonLeitheusser commented 2 years ago

With EF Core 6 the possibility of global conversions was introduced. But to set them up a parameterless Constructor is needed. Currently this Feature is not documented but a pullrequest is on the way: https://github.com/dotnet/EntityFramework.Docs/pull/3716/commits. The only change needed to get it to work ist adding the parameterless constructor to the EfCoreValueConverter. After that the only thing the user has to do ist to add the converters in the ConfigureConventions method override.

andrewlock commented 2 years ago

Great, thanks, I didn't realise that was a requirement - I'll push out a fix for this soon 🙂

andrewlock commented 2 years ago

Thanks, this should be available in NuGet shortly as 1.0.0-beta06