Skip to content

Setting to disable struct default Constructor generation.Β #75

@panoukos41

Description

@panoukos41

My proposal is to add a boolean switch on the [StronglyTypedId] attribute that would indicate if the generator should generate the default constructor that accepts the BackingType value.

That way someone could provide his own custom constructor that accepts the BackingType and allow for further customisation of the final Value property.

I found myself in need of this actually only on the string type so far since I wanted to do some extra work to some ids.

If this sounds okay with you I would love to sit and try to implement it myself when I have some time 😸

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