Skip to content

ConfigureSmartEnum not working #554

Open
@ghost

Description

this is my ConfigureConventions
image

The smart enum
image

How I use it under entity
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions