<?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 : EF ImportEntities - Broken ?</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : EF ImportEntities - Broken ?</description>
  <pubDate>Sat, 11 Apr 2026 08:27:43 -700</pubDate>
  <lastBuildDate>Mon, 16 Mar 2009 12:15:02 -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=1126</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>EF ImportEntities - Broken ? : ImportEntities essentially creates...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1126&amp;PID=4089#4089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 1126<br /><strong>Posted:</strong> 16-Mar-2009 at 12:15pm<br /><br />ImportEntities essentially creates a clone of the entities in an EntityManager.&nbsp; Once you've run ImportEntities, "entity" still exists in "Main Manager", and a clone, with the same entity state as the original, now exists in "New Manager".&nbsp; ]]>
   </description>
   <pubDate>Mon, 16 Mar 2009 12:15:02 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1126&amp;PID=4089#4089</guid>
  </item> 
  <item>
   <title>EF ImportEntities - Broken ? : Hi,I&amp;#039;m working on a WPF application...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1126&amp;PID=4012#4012</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=449" rel="nofollow">smi-mark</a><br /><strong>Subject:</strong> 1126<br /><strong>Posted:</strong> 10-Mar-2009 at 12:09pm<br /><br />Hi,<br><br>I'm working on a WPF application and I would like to be able to use multiple EntityManagers but I can't seem to get it to work properly.<br><br>Here is some code I was trying:<br><br>&nbsp;&nbsp;<font color="#00cc00">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#0066ff"> Dim list As New List(Of Entity)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; list.Add(entity)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TryCast(Application.Current, Application).Manager.Tag = "Main Manager"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mManager = New DomainModelEntityManager(TryCast(Application.Current, Application).Manager)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mManager.Tag = "New Manager"<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print(entity.EntityAspect.EntityManager.Tag) '<font color="#000000"> <b>This returns "Main Manager" as it should</b></font><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mManager.ImportEntities(list, MergeStrategy.OverwriteChanges)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Print(entity.EntityAspect.EntityManager.Tag) </font></font><b><font color="#0066ff"><font color="#000000">'This still returns "Main Manager" instead of "New Manager"</font><br></font><br></b>Is there something I'm doing wrong? I've tried a few different ways but it still won't switch the manager (I modified properties on the entity and the .HasChanges still remained false on the new manager) <br><br>Thanks,<br><br>Mark<br><b><br></b>]]>
   </description>
   <pubDate>Tue, 10 Mar 2009 12:09:59 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1126&amp;PID=4012#4012</guid>
  </item> 
 </channel>
</rss>