Skip to content

Parameters in source generated query method headers cannot be nullable with ? #91

@LilithSilver

Description

@LilithSilver

Even in [Data] parameters, the source generator crashes with:

Generator 'QueryGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'SystemName.MethodName(ParameterType?).g.cs' contains an invalid character '?' at position 109.
Parameter name: hintName'.

It looks like ? should be replaced with something like "$nullable in the source generated filename.

There's no workaround, right now, since it seems explicitly typing Nullable<ParameterType> will just convert back to ?; at least with my config.

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