Giter Site home page Giter Site logo

Comments (2)

TylerCarlson1 avatar TylerCarlson1 commented on June 25, 2024

So what I'm seeing is Tree is tied to the Forest and a Section, so there's 2 parent child relationships to Tree. If that's the case AM.Collections can't help because it has no idea about the dual parent relationships. The only way to do this is do an after mapping which corrects the issue, or don't map to sections and pass the matching Forest.Trees object in the DB to the sections, so it doesn't generate a new object.

Also are you using a DTO for your classes? I see it looks like you are cloning here, which might be part of the problem.

from automapper.collection.

FBryant87 avatar FBryant87 commented on June 25, 2024

Ah so multiple parent relationships are the problem here, many thanks - will close.

from automapper.collection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.