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.
- Host: GitHub
- URL: https://github.com/leonardoporro/detached-mapper
- Owner: leonardoporro
- License: mit
- Created: 2016-09-12T22:27:54.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T18:24:51.000Z (about 2 years ago)
- Last Synced: 2024-05-15T18:50:35.657Z (almost 2 years ago)
- Topics: 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
- Language: C#
- Homepage:
- Size: 3.65 MB
- Stars: 126
- Watchers: 15
- Forks: 22
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.MD
- License: LICENSE
Awesome Lists containing this project
README

#### 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
[](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)