Skip to content

Support constructors? #7

@MihailsKuzmins

Description

@MihailsKuzmins

I have this model

class Foo
{
    public Foo(int prop)
    {
        Prop = prop;
    }

    public int Prop {get;}
    public string Str {get;set;}
}

the generated method calls a default constructor which does not exist

P.S. If it is OK, I could try to prepare a PR for this issue. This issue does not sound impossible

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