<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Changetracking  ComplexProperty</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Changetracking  ComplexProperty</description>
  <pubDate>Tue, 12 May 2026 20:42:40 -700</pubDate>
  <lastBuildDate>Thu, 01 Aug 2013 17:21:00 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=4148</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Changetracking  ComplexProperty : Hi JJanssen,  We are working on...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16685#16685</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4148<br /><strong>Posted:</strong> 01-Aug-2013 at 5:21pm<br /><br />Hi JJanssen,<br /><br />We are working on a fix for this bug.<br /><br />]]>
   </description>
   <pubDate>Thu, 01 Aug 2013 17:21:00 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16685#16685</guid>
  </item> 
  <item>
   <title>Changetracking  ComplexProperty :    thanks, for the fix in den...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16666#16666</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1248" rel="nofollow">JJANSSEN</a><br /><strong>Subject:</strong> 4148<br /><strong>Posted:</strong> 30-Jul-2013 at 5:57am<br /><br />thanks, for the fix in den 6.1.14 <br>&nbsp;"Fixed a problem with change tracking of Complex Type properties. &nbsp;&#091;D2443&#093;"<br><br><span id="result_" =""="" lang="en"><span ="hps"="">Now we</span> <span ="hps"="">have</span> <span ="hps"="">another problem</span> <span ="hps"="">when importing the</span> <span ="hps"="">entites</span> <span ="hps"="">of</span> <span ="hps"="">a</span> <span ="hps"="">EntityManager</span> <span ="hps"="">into another</span> <span ="hps"="">in an EntityServerSaveInterceptor</span><span>.</span> <span ="hps"="">When</span> <span ="hps"="">importing</span> <span ="hps"="">entity</span> <span ="hps"="">with</span> <span ="hps"="">ComplexProperties</span> <span ="hps"="">the</span> <span ="hps"="">original</span> <span ="hps"="">value</span> <span ="hps"="">is lost.<br><br></span></span>entity11.Period = new Period(new DateTime(9000,01,01), new DateTime(9999,01,01));<br>entity11.EntityAspect.AcceptChanges();<br>entity11.Period = new Period(new DateTime(9000,01,01), new DateTime(9999,01,01));<br><span id="result_" =""="" lang="en"><span ="hps"=""><span id="result_" =""="" lang="en"><span ="hps"="">entityManager11.AddEntity(entity11)</span></span>;<br>entityManager22.ImportEntities(entityManager11.</span></span><span id="result_" =""="" lang="en"><span ="hps"="">Entities, MergeStrategy.OverwriteChanges);<br>var entity22 = entityManager22.</span></span><span id="result_" =""="" lang="en"><span ="hps"=""><span id="result_" =""="" lang="en"><span ="hps"="">Entities</span></span>.First();<br><br>The </span></span>changetracking information for entity11 works, but not for the entity22. <br><br>Please help us,<br>Johannes Janssen<br><span style="font-size:10px"><br /><br />Edited by JJANSSEN - 30-Jul-2013 at 6:38am</span>]]>
   </description>
   <pubDate>Tue, 30 Jul 2013 05:57:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16666#16666</guid>
  </item> 
  <item>
   <title>Changetracking  ComplexProperty : Hello again JJanssen,  I wanted...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16324#16324</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4148<br /><strong>Posted:</strong> 13-May-2013 at 12:17pm<br /><br />Hello again JJanssen,<br /><br />I wanted to follow up with you and let you know that, in the meantime, there is a workaround.<br /><br />Instead of using a constructor for your Complex type<br /><table width="99%"><tr><td><pre class="BBcode">entity.Period = new Period(new DateTime(2000,01,01), new DateTime(2222,01,01));</pre></td></tr></table><br />you can assign each complex type property separately<br /><table width="99%"><tr><td><pre class="BBcode">entity.Period.StartDate = new DateTime(2000,01,01);<br />entity.Period.EndDate = new DateTime(2222,01,01));</pre></td></tr></table><br />and the issue will be gone.]]>
   </description>
   <pubDate>Mon, 13 May 2013 12:17:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16324#16324</guid>
  </item> 
  <item>
   <title>Changetracking  ComplexProperty : Hi JJanssen,  I was able to reproduce...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16323#16323</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 4148<br /><strong>Posted:</strong> 13-May-2013 at 11:56am<br /><br />Hi JJanssen,<br /><br />I was able to reproduce the issue here and will file a bug report.<br /><br />Regards.]]>
   </description>
   <pubDate>Mon, 13 May 2013 11:56:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16323#16323</guid>
  </item> 
  <item>
   <title>Changetracking  ComplexProperty :  Working with changetracking...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16318#16318</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1248" rel="nofollow">JJANSSEN</a><br /><strong>Subject:</strong> 4148<br /><strong>Posted:</strong> 13-May-2013 at 4:21am<br /><br />Working with changetracking and complex property:<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; entity.Period = new Period(new DateTime(2000,01,01), new DateTime(2222,01,01));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; entity.EntityAspect.AcceptChanges();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; entity.Period = new Period(new DateTime(9000,01,01), new DateTime(9999,01,01));<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var complexProperty = entity.EntityAspect.EntityMetadata.ComplexTypeProperties.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; First(c =&gt; c.PropertyInfo.Name.Equals("Period"));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var currentComplexObj = complexProperty.GetValue(entity, EntityVersion.Current);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var orginalComplexObj = complexProperty.GetValue(entity, EntityVersion.Original);<br><br>The value of the object currentComplexObj is new Period(new DateTime(9000,01,01), new DateTime(9999,01,01)) &lt;- this is right.<br>The value of the object orginalComplexObj is new Period(new DateTime(9000,01,01), new DateTime(9999,01,01)) &lt;- this is wrong.<br><br>What am I doing wrong? Where can i get the old original value from the complex property?<br>Sincere regards, Johannes<br><span style="font-size:10px"><br /><br />Edited by JJANSSEN - 13-May-2013 at 6:26am</span>]]>
   </description>
   <pubDate>Mon, 13 May 2013 04:21:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4148&amp;PID=16318#16318</guid>
  </item> 
 </channel>
</rss>