DapperLib / DapperLib/DapperAOT

No code or warning generated for QueryAsync with private class return

Open
#131 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
472
Forks
43
Avg merge
1d 4h
Merged PRs (30d)
18

Description

DapperAOT version 1.0.31

To Reproduce

    var x = await connection.QueryAsync<Test>("SELECT 1 as v"); // no interceptor code generated

    private class Test
    {
        public required int V { get; init; }
    };

Probably should produce a warning?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the C# reproduction in the issue and inspect the generated output for QueryAsync when Test is private. Compare the behavior with the expected diagnostic or interceptor generation, then verify that the chosen behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
compilers, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.