Jil icon indicating copy to clipboard operation
Jil copied to clipboard

"Expected a parameterless constructor" when it has a constructor where all parameters have defaults

Open zachary-kaelan opened this issue 5 years ago • 0 comments

Here's the constructor header for a model it returned this error for:

public BranchListModel(int? BranchID = null, string Name = null, bool? Active = null)

I have this huge auto-generated library of models, and I can't fix them manually.

zachary-kaelan avatar Apr 15 '19 14:04 zachary-kaelan