How can we improve Breeze.js?

Deep entity clone with configuration for dependent related entities

Need a clean way to clone, say, an order and its child orderLineItems such that (a) all order values are copied except the id which is new, (b) all child LineItems are copied except they have new ids and their FKs to the parent order are updated to the new parent order id, and (b) the cloned graph entities are in Added state.

See this (http://stackoverflow.com/questions/20566093/breeze-create-entity-from-existing-one/20579971#20579971) and this (http://stackoverflow.com/questions/23488573/deep-clone-copy-breeze-entity-and-create-new-entity). See also Breeze Labs "getEntityGraph" which should become part of Breeze core.

106 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ward Bell shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base