ConfigureSmartEnum not working
- Dominant language
- C#
- Stars
- 2.4k
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
Description
**this is my ConfigureConventions**

**The smart enum**

**How I use it under entity**

`The exception 'No suitable constructor was found for entity type 'UnitMaterial'. The following constructors had parameters that could
not be bound to properties of the entity type:
Cannot bind 'name', 'value' in 'UnitMaterial(string name, int value)'`
how can I fix this ? please help
UnitMaterial and Entity is under my DOMAIN project, and dbContext is under INFRASTRUCTURE project
My specs
.NET 8.0
SmartEnum 8.1
SmartEnum.EFCore 8.1
Contributor guide
Research direction
Start with the ConfigureConventions setup, the UnitMaterial entity, and the DbContext described in the issue, then reproduce the constructor-binding exception using SmartEnum 8.1 and SmartEnum.EFCore 8.1 on .NET 8. Check the SmartEnum.EFCore mapping entry points and verify that UnitMaterial can be discovered and persisted without the reported exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100