HasDefaultvalue() for interfaces/generics #17780
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
good first issue
This issue should be relatively straightforward to fix.
type-bug
Milestone
Unable to set default value for interfaces/generics.
Not working:
Model:
Context Configuration:
Results in the following when running add-migration:
The following is working:
Model:
Context Configuration:
Is this by design?
EF Core version: 2.2.6
Database provider: npgsql
Target framework: (e.g. .NET Core 2.2)
Operating system: Cross Platform
IDE: VS 2019
The text was updated successfully, but these errors were encountered: