Skip to content

Support c# 9 records #334

@Trolldemorted

Description

@Trolldemorted

Faker only works for types with a parameterless contructor (throwing No parameterless constructor defined for type 'WASP.Models.Attack'. (System.MissingMethodException) otherwise).

This makes it impossible to use it with record types which don't have a default constructor. Other dotnet libraries (json parsers, ef core, ...) are able to use the full constructors, so there must be a decent way to do so, could you adapt that?

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