Skip to content

parameterless constructor  #103

@hanslai

Description

@hanslai

Commit #16's parameterless constructor is not in the source code anymore. Is there a reason for this?

In order to put the smartEnum into a EF Core Table, now I need to do the following for the constructor

// base("default", "default") should not be needed.  and it adds confusion for programmer I think.
protected BaseOptionType() : base("default", "default")  
     {
         IsRequired = false;
     }

EF Core Value Conversions does not work for me, because I do want to save both name and value into the database, so user can add record to it later as well.

related issues
#16
#15

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