<?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 : Many Models per Manager</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Many Models per Manager</description>
  <pubDate>Thu, 23 Apr 2026 16:12:57 -700</pubDate>
  <lastBuildDate>Tue, 01 May 2012 22:56:45 -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=3405</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>Many Models per Manager : Hi Silvio,How about the IDataSourceKeyResolver,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13470#13470</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3405<br /><strong>Posted:</strong> 01-May-2012 at 10:56pm<br /><br />Hi Silvio,<div><br></div><div>How about the IDataSourceKeyResolver, is it still possible here in different models?</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Tue, 01 May 2012 22:56:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13470#13470</guid>
  </item> 
  <item>
   <title>Many Models per Manager :     Von,There&amp;#039;s no special...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13418#13418</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> 3405<br /><strong>Posted:</strong> 25-Apr-2012 at 3:28pm<br /><br />Von,<div>&nbsp;</div><div>There's no special handling if you want&nbsp;one EntityManager with multiple models from different datasources.</div><div>&nbsp;</div><div>You simply create your models pointing to their respective&nbsp;datasources and in the model properties assign the mutual EntityManager name:</div><div>&nbsp;</div><div><img src="uploads/892/modelProperties.png" height="665" width="398" border="0" /></div><div>&nbsp;</div><div>The only restriction is that you would not be able to have entities from different models, but with the same names. (i.e. Employee and Employee)</div><div>&nbsp;</div><div>I'm attaching a simple solution showing one EM with multiple models from different datasources: <a href="uploads/892/T11806.zip" target="_blank">uploads/892/T11806.zip</a></div><div>&nbsp;</div><div>Regards,</div><div>&nbsp;&nbsp; Silvio.</div><span style="font-size:10px"><br /><br />Edited by sbelini - 25-Apr-2012 at 3:30pm</span>]]>
   </description>
   <pubDate>Wed, 25 Apr 2012 15:28:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13418#13418</guid>
  </item> 
  <item>
   <title>Many Models per Manager : Hi,I&amp;#039;ve seen this topic and...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13410#13410</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1228" rel="nofollow">Vonzkie</a><br /><strong>Subject:</strong> 3405<br /><strong>Posted:</strong> 25-Apr-2012 at 1:34am<br /><br /><div>Hi,</div><div><br></div><div>I've seen this topic and I find it cool:</div><a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/many-models-per-manager" target="_blank">http://drc.ideablade.com/xwiki/bin/view/Documentation/many-models-per-manager</a><div><br></div><div>Example, I have two Models:</div><div><br></div><div>Model A</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Customer</div><div><br></div><div>Model B</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>Employee</div><div><br></div><div>Then using the approach given on the post, I'll use EntityManager to query:</div><div><br></div><div>so..&nbsp;</div><div><br></div><div>EntityManager context = new EntityManager();</div><div>var query1 = context.GetQuery&lt;Customer&gt;().Execute();</div><div>var query2 = context.GetQuery&lt;Employee&gt;().Execute();</div><div><br></div><div>the question would be, how about if Model A connects to DB A and Model B connects to DB B, how do we handle that?</div><div><br></div><div>Thanks,</div><div>Von</div>]]>
   </description>
   <pubDate>Wed, 25 Apr 2012 01:34:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3405&amp;PID=13410#13410</guid>
  </item> 
 </channel>
</rss>