You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order for the value converter to work in the HaveConversion method a parameterless constructor is needed.
Currently trying to use the converter will throw
System.InvalidOperationException: "Cannot create an instance of value converter type 'EfCoreValueConverter'. Ensure that the type can be instantiated and has a parameterless constructor, or use the overload of 'HasConversion' that accepts a delegate."
In contrast the StronglyTypedIds lib does provide a parameterless constructor in the source generated converter which does solve this issue.
Steps to reproduce
Install latest version of EFCore (6.0.4) and Vogen (1.0.19)
In the DbContext override ConfigureConventions and configure a conversion with the source generated converter.
Create / Apply migrations will throw
Expected behaviour
The value converter should come with a default parameterless constructor.
The text was updated successfully, but these errors were encountered:
Describe the bug
In order for the value converter to work in the HaveConversion method a parameterless constructor is needed.
Currently trying to use the converter will throw
In contrast the StronglyTypedIds lib does provide a parameterless constructor in the source generated converter which does solve this issue.
Steps to reproduce
Expected behaviour
The value converter should come with a default parameterless constructor.
The text was updated successfully, but these errors were encountered: