An open API service indexing awesome lists of open source software.

https://github.com/leonardoporro/detached-mapper

An ORM friendly mapper. Allows saving entire entity graphs. Heavily inspired in GraphDiff and AutoMapper.
https://github.com/leonardoporro/detached-mapper

automapper change-detection change-tracker disconected-entities dotnet dotnet-core dotnet-library dtos ef ef-core efcore entity-framework entity-graph entityframework graphdiff mapper mappers mapping-entities orm tracked-entities

Last synced: 2 months ago
JSON representation

An ORM friendly mapper. Allows saving entire entity graphs. Heavily inspired in GraphDiff and AutoMapper.

Awesome Lists containing this project

README

          

![Detached Banner](https://raw.githubusercontent.com/leonardoporro/Detached-Mapper/refs/heads/main/banner.png?raw=true)

#### Maps Dtos directly to entities already attached to a DbContext
#### Solves disconnected entities, partial updates and automapping in a single step

## Getting started
Check [getting started](https://github.com/leonardoporro/Detached-Mapper/wiki/Getting-Started) on the new wiki.

## Play in .Net Fiddle
A couple of examples to check library capabilities without installing anything.

- [Attach graph of anonymous objects](https://dotnetfiddle.net/l7q6wA)
- [Import json graph](https://dotnetfiddle.net/Mn8mYU)

## Issues and feedback
Please use [GitHub Issues](https://github.com/leonardoporro/Detached-Mapper/issues) tab to report anything you find using the library.
All feedback is welcome, I'll try to prioritize and fix everything, but I have limited personal time to work on this.

## Changes & Breaking Changes
Please take a look at the new list [here](https://github.com/leonardoporro/Detached-Mapper/wiki/Changes-&-Breaking-Changes).

## PR your test!
Fork the project and send me a PR with your tests in the Contrib folder and I will include them so that
in the future I won�t break your solution with changes. And I'll make it pass if they are broken because of an issue.
I know the library needs ton more of tests, but resources here are limited. Sorry and thanks for your contribution!

## Urgent issues
If something is blocking your project and you need help asap, contact me at my [e-mail](mailto:mail@leonardoporro.com.ar).

## Donations & Support

[![BuyCoffeeBanner](buy_coffee.png)](https://bmc.link/lporro)

If you like my work and want to [Buy me a Coffee](https://bmc.link/lporro), that would be awesome! ([mail me](mailto:mail@leonardoporro.com.ar) if that doesn't work for you)

Thanks for your feedback and kindly donations!:
- @RobertInDotNET and the entire team of SysTec Computer GmbH (https://www.systec-computer.de/)
- @traiannemes
- @MichaelM223
- @heyadamhey

And thanks to all the people who gave it a try and reported issues! Thanks for your help and patience.

## Related tools
Other packages built to provide features to the mapper:

- [Runtime Types](https://github.com/leonardoporro/Detached-RuntimeTypes)
- [Patch Types](https://github.com/leonardoporro/Detached-PatchTypes)