question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mapster.Tool TwoWays Configuration doesn't work

See original GitHub issue

Mapster.Tool works with ‘AdaptTwoWays’ attribute, but it could be nice to describe Configuration for tool as well, specially for the EF objects.

Mapster.Tool TwoWays Configuration doesn’t work currently:

TypeAdapterConfig<Staff, StaffDto>
    .NewConfig()
    .TwoWays();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
chaowlertcommented, Nov 12, 2020
0reactions
zs-dimacommented, Nov 3, 2020

Thanks a lot for details, I see that Interface does not generate extension methods, so it could not be used to keep EF model untouched and have the same mapping as ~config.NewConfig<Staff, StaffDto>().TwoWays(); Hope it will be possible once.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mapster.Tool TwoWays Configuration doesn't work
Tool works with 'AdaptTwoWays' attribute, but it could be nice to describe Configuration for tool as well, specially for the EF objects. Mapster...
Read more >
ProjectToType doesn't work with DI(MapContext) · Issue #266
I have this Config public void Register(TypeAdapterConfig config) { config ... I use this way to solve it ... Mapster.Tool and DI #519....
Read more >
c# - Mapster not mapping
Step 1 - Create the configuration via implementing IRegister public class BlacklistMapper : IRegister { void Register(TypeAdapterConfig ...
Read more >
Mapster, the best .NET mapper that you are (probably) not using
It's a mapping library that it is packing some really amazing features ... Give Mapster a star: https://github.com/MapsterMapper/ Mapster ...
Read more >
Getting Started With Mapster in ASP.NET Core
The two-way mapping in Mapster is a simple way to configure ... <Exec WorkingDirectory="$(ProjectDir)" Command="dotnet tool restore" />.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found