New Posts New Posts RSS Feed: Devforce ImportEntities Does not import changes to a modified entity
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Devforce ImportEntities Does not import changes to a modified entity

 Post Reply Post Reply
Author
rasmus View Drop Down
Groupie
Groupie


Joined: 05-Aug-2009
Location: Denmark
Posts: 63
Post Options Post Options   Quote rasmus Quote  Post ReplyReply Direct Link To This Post Topic: Devforce ImportEntities Does not import changes to a modified entity
    Posted: 25-Jul-2013 at 11:39pm
Hi

I have the following problem:

Entity car = new Car();
car.year = 2010; //This entity now has the state of modified

sandboxedEntityManager.ImportEntities(new List<Entity>() { car }, MergeStrategy.OverwriteChanges);

If I now check the car entity in the sandboxedEntityManager, the year is now 0 and not as I would have expected 2010. So the values of the modified properties is not exported to the manager. Is there a way to do this?

Best regards,
Rasmus
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 26-Jul-2013 at 3:02pm
An ImportEntities call does import changed properties with this merge strategy, so something else must be going on here.   If you can provide a repro sample that would help us diagnose your issue.
 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down