MapsterMapper / MapsterMapper/Mapster

Please support arbitrary parameters on interface when generating mapper

Open
#529 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
C#
Stars
5.2k
Forks
410
Avg merge
2d 12h
Merged PRs (30d)
6

Description

````c#
[Mapper]
public interface IMyMapper{
B Map(A a, string arbitraryString, int anotherParam );
}

class A{
string Name;
}
class B{
string Name; // maps directly from A.Name
string Val; //will be mapped from arbitraryString
int Age //will be mapped fromanotherParam ;
}
````

Contributor guide

Open the contributing guide

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 by tracing the mapper code-generation path for interface methods and how method parameters are currently handled. Compare the requested A-to-B property mapping with the arbitrary string and integer parameters in the example. Done means generated mapping supports those parameters while preserving direct mappings from A.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.