Print Page | Close Window

Devforce ImportEntities Does not import changes to a modified entity

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2012
Forum Discription: For .NET 4.5
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=4247
Printed Date: 27-Mar-2025 at 1:30am


Topic: Devforce ImportEntities Does not import changes to a modified entity
Posted By: rasmus
Subject: Devforce ImportEntities Does not import changes to a modified entity
Date 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



Replies:
Posted By: kimj
Date 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.
 



Print Page | Close Window