Skip to content

Generated mappers and required attributes #554

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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