Skip to content

Generated mappers and required attributes #554

Open
@EniacMlezi

Description

@EniacMlezi

When using the c#11.0 required feature, the generated mappers fail. Editinh Sample.CodeGen for example:

public class Person
{
    public required int ID { get; set; }
    public string LastName { get; set; }
    public string FirstMidName { get; set; }
}

And looking at the generated StudentMapper:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions