<?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 : Handling relationship between 2 models</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2012 : Handling relationship between 2 models</description>
  <pubDate>Fri, 10 Apr 2026 23:57:06 -700</pubDate>
  <lastBuildDate>Mon, 12 Aug 2013 15:50:09 -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=4266</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>Handling relationship between 2 models : kdev,   Since DevForce does not...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4266&amp;PID=16717#16717</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> 4266<br /><strong>Posted:</strong> 12-Aug-2013 at 3:50pm<br /><br />kdev, <br /><br />Since DevForce does not support nested save calls, your scenario would not be possible.<br /><br />An option would be if AA had a non-identity PK (i.e. a GUID), so you could create/add AA, assign the Guid to both AA and BB, and then call return base.ExecuteSave().<br />The advantage of this approach is that your save would be transactional across both models.<br /><br /><span style="font-size:10px"><br /><br />Edited by sbelini - 12-Aug-2013 at 3:51pm</span>]]>
   </description>
   <pubDate>Mon, 12 Aug 2013 15:50:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4266&amp;PID=16717#16717</guid>
  </item> 
  <item>
   <title>Handling relationship between 2 models : Hi,I have multiple models and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4266&amp;PID=16711#16711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1623" rel="nofollow">kdev</a><br /><strong>Subject:</strong> 4266<br /><strong>Posted:</strong> 12-Aug-2013 at 5:46am<br /><br /><div>Hi,</div><div><br></div><div>I have multiple models and wonder how to handle a Foreign key on entities shared among models.</div><div><br></div><div>Exemple :</div><div><br></div><div>Model A contains entity AA</div><div>Model B contains entity BB which has an interger property named AA_Id (it represent a relation to AA.Id)</div><div><br></div><div>When entity BB is saved, I want to call in my save interceptor a Service from model A which will generate an AA entity.</div><div>This AA entity will have a temporary Id, how can I do to update the AA_ID in my BB entity during the save ?&nbsp;</div><div><br></div><div>Regards,</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 12 Aug 2013 05:46:42 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4266&amp;PID=16711#16711</guid>
  </item> 
 </channel>
</rss>