MapsterMapper / MapsterMapper/Mapster

Tool generates empty mapper

Open
#339 15 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug waiting for info
Dominant language
C#
Stars
5.2k
Forks
410
Avg merge
2d 12h
Merged PRs (30d)
6

Description

Tool generates empty mapper:

```csharp
[AdaptTo("[name]Dto"), GenerateMapper]
public class Author : BaseEntity
{
public int Id { get; set; }
public string Name { get; set; }

public virtual ICollection Books { get; set; }
public virtual ICollection AuthorBooks { get; set; }
}

public abstract class BaseEntity
{
public BaseEntity()
{
CreatedOn = DateTime.Now;
}


public DateTime CreatedOn { get; set; }
public DateTime? UpdatedOn { get; set; }
}

```

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

No files or tests are named. Start by reproducing the issue with the shown Author and BaseEntity classes, then trace the mapper generation entry point to find why the output is empty. Done means the tool generates the expected mapper for this example.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.