<?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 : Parent child Insertion problem (0racle)</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Parent child Insertion problem (0racle)</description>
  <pubDate>Wed, 10 Jun 2026 17:29:37 -700</pubDate>
  <lastBuildDate>Fri, 03 Sep 2010 13:42:25 -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=2092</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>Parent child Insertion problem (0racle) : Yeah very much working for me...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8356#8356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 03-Sep-2010 at 1:42pm<br /><br />Yeah very much working for me <br><br>Thanks you solved my big problem <br><br>:)<br>]]>
   </description>
   <pubDate>Fri, 03 Sep 2010 13:42:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8356#8356</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hey Bala, look this link:  htt...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8354#8354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=911" rel="nofollow">Molinari</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 03-Sep-2010 at 1:26pm<br /><br />Hey Bala, look this link:<br /><br />http://www.ideablade.com/forum/forum_posts.asp?TID=2121&PID=8353#8353<br /><br />this will solve the problem.]]>
   </description>
   <pubDate>Fri, 03 Sep 2010 13:26:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8354#8354</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hi Denisk  Did you check solution...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8332#8332</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 03-Sep-2010 at 5:19am<br /><br />Hi Denisk<DIV>&nbsp;</DIV><DIV>Did you check solution with Oracle. This is I really need to work with oracle.</DIV><DIV>Please check and let me know..</DIV><DIV>&nbsp;</DIV><DIV>Thanks for helping...</DIV>]]>
   </description>
   <pubDate>Fri, 03 Sep 2010 05:19:36 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8332#8332</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hi Bala;It does sound curious...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8292#8292</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 31-Aug-2010 at 11:52am<br /><br />Hi Bala;<div><br></div><div>It does sound curious as to why it works in Microsoft SQL server but not in Oracle. Let me test it out with Oracle and let you know.</div>]]>
   </description>
   <pubDate>Tue, 31 Aug 2010 11:52:57 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8292#8292</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hi Denisk..Finally I made database...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8288#8288</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 31-Aug-2010 at 6:51am<br /><br />Hi Denisk..<br><br>Finally I made database in SQL server and got sucess.<br><br>But still I need to solve problem with Oracle.I am using oracle database for my project.<br><br>Thanks for you vital help. Can you try this stuff in oracle If you have.<br><br><br>Thanks a Lot<br><br><br><br><br>]]>
   </description>
   <pubDate>Tue, 31 Aug 2010 06:51:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8288#8288</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Bala;Please try the link again...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8278#8278</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 30-Aug-2010 at 4:25pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Bala;<div><br></div><div>Please try the link again and use this statement instead.</div><div><br></div><div>if (!args.HasError)</div></div>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 16:25:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8278#8278</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hi I copy your code but few keywords...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8275#8275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 30-Aug-2010 at 12:52pm<br /><br />Hi <br>I copy your code but few keywords does not exits.<br>&nbsp;&nbsp; if (args.CompletedSuccessfully) {<br>i do not have completedSucessfully..<br><br>&nbsp;Which version are you using?<br>And your zip file also not opening..<br><br>Could you post again?<br><br>Thanks for replying..<br><br><br><br>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 12:52:24 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8275#8275</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) :  Bala;I duplicated your database...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8272#8272</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 30-Aug-2010 at 12:14pm<br /><br /><div style=": rgb255, 255, 255; margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb0, 0, 0; font-weight: normal; font-size: 12px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; -: n&#111;ne; ">Bala;<div><br></div><div>I duplicated your database using the screenshots that you had sent me and I wrote the exact same logic (see below). I did not get any error. I've attached my edmx file. Maybe you can see what my edmx file is like and compare it to yours. Hopefully it will help.</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; var mgr = new ModelTestEntityManager();</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp;ITEMVENDA novoItem = new ITEMVENDA();</div><div>&nbsp;&nbsp; &nbsp; &nbsp;novoItem.NOME = "some NOME text";</div><div>&nbsp;&nbsp; &nbsp; &nbsp;novoItem.VALORUNIT = 10;</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp;VENDA novo = new VENDA();</div><div>&nbsp;&nbsp; &nbsp; &nbsp;novo.TIPOPAGAMENTO = "some TIPO text";</div><div>&nbsp;&nbsp; &nbsp; &nbsp;novo.VALORTOTAL = 10;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;novo.ITEMVENDAs.Add(novoItem);</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp;mgr.AddEntity(novo);</div><div>&nbsp;&nbsp; &nbsp; &nbsp;mgr.SaveChangesAsync(args =&gt; {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;if (args.CompletedSuccessfully) {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Output = "Completed successfully";</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;} else {</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Output = "Save operation has the following errors: " + args.Error.Message;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp;&nbsp; &nbsp; &nbsp;});</div><div><br></div><div><a href="uploads/912/ModelTestModelEdmx.zip" target="_blank">uploads/912/ModelTestModelEdmx.zip</a></div></div></div>]]>
   </description>
   <pubDate>Mon, 30 Aug 2010 12:14:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8272#8272</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) :  uploads/896/imagem12.rar  </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8253#8253</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 27-Aug-2010 at 1:59pm<br /><br /><a href="uploads/896/imagem12.rar" target="_blank">uploads/896/imagem12.rar</a><br>]]>
   </description>
   <pubDate>Fri, 27 Aug 2010 13:59:13 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8253#8253</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) :  uploads/896/imagem11.rar  </title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8252#8252</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 27-Aug-2010 at 1:58pm<br /><br /><a href="uploads/896/imagem11.rar" target="_blank">uploads/896/imagem11.rar</a><br>]]>
   </description>
   <pubDate>Fri, 27 Aug 2010 13:58:12 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8252#8252</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : hey i I uploaded Images..Could...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8251#8251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 27-Aug-2010 at 1:50pm<br /><br />hey i I uploaded Images..<br>Could you see and tell me..<br><br>Where is problem..<br><br><br>Have a nice weekend..<br><br>]]>
   </description>
   <pubDate>Fri, 27 Aug 2010 13:50:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8251#8251</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Bala;I did a similar test insertion...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8228#8228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 26-Aug-2010 at 3:45pm<br /><br />Bala;<div><br></div><div>I did a similar test insertion using the NorthwindIB database with the same parent child relation and it worked. So I'm guessing that it has something to do with your Entity Data Model. Could you upload your edmx file to the forum?</div><div><br></div><div>Thanks.&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 15:45:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8228#8228</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Thanks for replyVersion is DevForce2010...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8223#8223</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 26-Aug-2010 at 2:02pm<br /><br /><br>Thanks for reply<br><br>Version is DevForce2010 v6.0.4.0<br><br>Yes, have realation one to many<br><br><b>VENDA 1 ============* ITEMVENDA</b><br><br><br>Thanks<br><img src="file:///C:/Users/vend/Desktop/tables.png" border="0" /><img src="file:///C:/Users/vend/Desktop/tables.png" border="0" />]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 14:02:19 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8223#8223</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Bala;I&amp;#039;m going to need more...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8221#8221</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 26-Aug-2010 at 1:38pm<br /><br />Bala;<div><br></div><div>I'm going to need more information from you. Could you provide me with the following?</div><div><br></div><div>1. Your DevForce version</div><div><br></div><div>2. How your VENDA and ITEMVENDA tables are associated on your database.</div><div><br></div><div>Thanks,</div>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 13:38:31 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8221#8221</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Thanks for answer..I undestand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8205#8205</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 26-Aug-2010 at 4:15am<br /><br />Thanks for answer..<br>I undestand the error and I know how it comes. But I like to know How the error generating from<br>my code. Because When I inserting manually it not showing any such error.<br><br>But when we try to insert from UI code this error population.<br><br>Is there any problem in my Code ?<br><br>If I am right it is not necerssary to bring ID of the parent to insert in Child. Navigation does automatically<br>it search ID for parent.<br><br>HOw can I acheive this?<br><br>If have with example that could be great help..<br><br>Thanks<br>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 04:15:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8205#8205</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Bala;Searching on Google gives...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8193#8193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 25-Aug-2010 at 2:29pm<br /><br />Bala;<div><br></div><div>Searching on Google gives me this</div><div><br></div><div><span ="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; "><table align="center" border="0" width="100%" cellpadding="5"><t><tr valign="top"><td nowrap="nowrap" style="font-family: arial, helvetica; font-size: 12px; text-decorati&#111;n: n&#111;ne; "><h2 style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 18px; ">ORA-02291:</h2></td><td style="font-family: arial, helvetica; font-size: 16px; text-decorati&#111;n: n&#111;ne; ">integrity constraint (<i>string</i>.<i>string</i>) violated - parent key not found</td></tr><tr valign="top"><td style="font-family: arial, helvetica; font-size: 18px; text-decorati&#111;n: n&#111;ne; "><b style="font-weight: bold; ">Cause:</b></td><td style="font-family: arial, helvetica; font-size: 16px; text-decorati&#111;n: n&#111;ne; line-height: 1.5; ">A foreign key value has no matching primary key value.<br></td></tr><tr valign="top"><td style="font-family: arial, helvetica; font-size: 18px; text-decorati&#111;n: n&#111;ne; "><b style="font-weight: bold; ">Action:</b></td><td style="font-family: arial, helvetica; font-size: 16px; text-decorati&#111;n: n&#111;ne; line-height: 1.5; ">Delete the foreign key or add a matching primary key.</td></tr></t></table><br></span></div><div><span ="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 20px; ">You might want to take a look at your novoItem object and see if its foreign key has been linked to the primary key of novo.&nbsp;</span></div>]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 14:29:11 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8193#8193</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Has the parent record been inserted...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8189#8189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=202" rel="nofollow">BillG</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 25-Aug-2010 at 12:42pm<br /><br />Has the parent record been inserted yet? Its seems that it can't find a parent record with that key.<DIV>&nbsp;</DIV><DIV>Bill</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 12:42:01 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8189#8189</guid>
  </item> 
  <item>
   <title>Parent child Insertion problem (0racle) : Hi There  I have one two table...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8179#8179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=896" rel="nofollow">bala</a><br /><strong>Subject:</strong> 2092<br /><strong>Posted:</strong> 25-Aug-2010 at 6:29am<br /><br />Hi There<DIV>&nbsp;</DIV><DIV>I have one two table with parent and child relation. I want to insert record in child table</DIV><DIV>&nbsp;</DIV><DIV>I am using following code for inserting..</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ITEMVENDA&nbsp;novoItem&nbsp;=&nbsp;new&nbsp;ITEMVENDA();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;novoItem.NOME&nbsp;=&nbsp;txtNome.Text;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;novoItem.VALORUNIT&nbsp;=&nbsp;Convert.ToDecimal(txtValorUnit.Text);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </DIV><DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VENDA&nbsp;novo&nbsp;=&nbsp;new&nbsp;VENDA();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;novo.TIPOPAGAMENTO&nbsp;=&nbsp;txtTipoPgto.Text.ToUpper();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;novo.VALORTOTAL&nbsp;=&nbsp;Convert.ToDecimal(txtValorTotal.Text);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;novo.ITEMVENDA.Add(novoItem);</DIV><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_entityManager.AddEntity(novo);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_entityManager.SaveChangesAsync(args&nbsp;=&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(args.IsCompleted)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;activity1.IsActive&nbsp;=&nbsp;false;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MessageBox.Show(args.Error.Message);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});</P><DIV>I have this error while saving..</DIV><DIV>&nbsp;</DIV></DIV><DIV><DIV><strong><EM>ORA-02291 Intergrity constraint (Client_Novo.FK_ItemVenda_Venda)</EM></strong></DIV><DIV><strong><EM>Violeted - Parent Key not found</EM></strong></DIV><DIV><strong><EM></EM></strong>&nbsp;</DIV><DIV><EM>Any Help would be appriciated..</EM></DIV><DIV><strong><EM></EM></strong>&nbsp;</DIV><DIV><strong><EM>Thanks</EM></strong></DIV><DIV><strong><EM></EM></strong>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 06:29:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2092&amp;PID=8179#8179</guid>
  </item> 
 </channel>
</rss>