DapperLib / DapperLib/DapperAOT

[DAP102] Can't be used with generic types

Open
#128 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

Hello !

I was using FastMember's ObjectReader to push streams of generic data into my DB using SqlBulkCopy.

Looking for a solution that supports async streams, I've stumbled upon this project.

I've tried to use it with a generic IAsyncEnumerable

But my project fails to compile due to DAP102 error: At least one gettable and settable member must be defined for type {0}.

I understand that it's probably not possible to generate the accessor when the type is only known at runtime.

Could you please update the documentation to reflect that generics are not supported?

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

Review the DapperAOT documentation covering supported types and the DAP102 diagnostic, paying attention to IAsyncEnumerable and generic types. Done when the documentation clearly states whether generic types and async streams are supported and explains the relevant limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.