<?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 : Getting Error while adding entity</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Getting Error while adding entity</description>
  <pubDate>Thu, 11 Jun 2026 01:37:28 -700</pubDate>
  <lastBuildDate>Fri, 18 Jul 2008 00:11:47 -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=892</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>Getting Error while adding entity : Hi Kim,   Thanks for the reply.  I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3236#3236</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 892<br /><strong>Posted:</strong> 18-Jul-2008 at 12:11am<br /><br />Hi Kim, <DIV>&nbsp;</DIV><DIV>Thanks for the reply.</DIV><DIV>&nbsp;</DIV><DIV>I have resolved the issue this morning. But its a very&nbsp;descriptive as well as useful reply from ur side.</DIV><DIV>That will be very useful for us to optimize the code as well as improve performance. I will try this thing in my code and check it eventhough i have solved it.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again.&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 Jul 2008 00:11:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3236#3236</guid>
  </item> 
  <item>
   <title>Getting Error while adding entity : Hi Kim,  Thanks for the reply.  I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3235#3235</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 892<br /><strong>Posted:</strong> 18-Jul-2008 at 12:10am<br /><br />Hi Kim,<DIV>&nbsp;</DIV><DIV>Thanks for the reply.</DIV><DIV>&nbsp;</DIV><DIV>I have resolved the issue this morning. But its a very&nbsp;descriptive as well as useful reply from ur side.</DIV><DIV>That will be very useful for us to optimize the code as well as improve performance. I will try this thing in my code and check it.</DIV><DIV>&nbsp;</DIV><DIV>Thanks again.&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 18 Jul 2008 00:10:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3235#3235</guid>
  </item> 
  <item>
   <title>Getting Error while adding entity : Well, you&amp;#039;ll get this error...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3234#3234</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> 892<br /><strong>Posted:</strong> 17-Jul-2008 at 10:34am<br /><br />Well, you'll get this error if the entity you're trying to add already has its .EntityManager property set and the entity is in a non-detached state.&nbsp; How did the entity come into existence?&nbsp; Did you query for it, restore it from an entity set, or create it?&nbsp;&nbsp; If you do want to add the entity to this EntityManager, first call entity.RemoveFromManager to detach it from its current EntityManager.&nbsp; Once added, the entity's state will be Added, and when SaveChanges is called it will be inserted to the database.&nbsp; If you don't want this behavior, then look at using mgr.ImportEntities to "move" entities between Entity Managers.]]>
   </description>
   <pubDate>Thu, 17 Jul 2008 10:34:46 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3234#3234</guid>
  </item> 
  <item>
   <title>Getting Error while adding entity : Hi,  I m getting the following...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3233#3233</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=302" rel="nofollow">keval</a><br /><strong>Subject:</strong> 892<br /><strong>Posted:</strong> 17-Jul-2008 at 12:12am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I m getting the following error while adding entity to entitymanager</DIV><DIV>&nbsp;</DIV><DIV><strong>"This Entity already belongs to another EntityManager"</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>Following is the code snippet where i get the error</DIV><DIV><FONT size=3><P><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><strong>DataSet.AddEntity(mmp); </strong></FONT></P><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>- DataSet is EntityManager</FONT></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2>- mmp is Entity</FONT></DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Verdana, Arial, Helvetica, sans-serif" size=2><strong>Can u please guide me what can be the error. AS i m not adding this entity to anywhere in the application thenalso getting the error.</strong></FONT></DIV><DIV><strong><FONT size=2></FONT></strong>&nbsp;</DIV><DIV><strong><FONT size=2>Thanks in advance.</FONT></strong></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 17 Jul 2008 00:12:04 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=892&amp;PID=3233#3233</guid>
  </item> 
 </channel>
</rss>