<?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 : Multiple data models in single project</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Multiple data models in single project</description>
  <pubDate>Wed, 29 Jul 2026 02:27:47 -700</pubDate>
  <lastBuildDate>Mon, 04 Oct 2010 16:11:28 -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=2186</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>Multiple data models in single project : xkubr,   can I take a look at...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8710#8710</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> 2186<br /><strong>Posted:</strong> 04-Oct-2010 at 4:11pm<br /><br />xkubr, <DIV>&nbsp;</DIV><DIV>can I take a look at your App.config/Web.config file? The error leads me to believe that something might not be quite right in one of these files.</DIV><DIV>&nbsp;</DIV><DIV>As for needing to implement a datasource key resolver, it's not really necessary if you have all connectionStrings or EdmKeys. (You might also take a look at our <a href="http://drc.ideablade.com/xwiki/bin/view/&#068;ocumentati&#111;n/Business&#079;bjectPersistenceAdvanced#HDataSourceKeys2CDataSourceKeyResolvers2CandDataSourceExtensi&#111;ns" target="_blank">DevForce Resource Center</A>&nbsp;section which provides details on DataSourceKeys, DataSourceKeyResolvers, and DataSourceExtensions)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><span style="font-size:10px"><br /><br />Edited by sbelini - 04-Oct-2010 at 4:15pm</span>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 16:11:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8710#8710</guid>
  </item> 
  <item>
   <title>Multiple data models in single project : I have followed the suggestions...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8644#8644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2186<br /><strong>Posted:</strong> 27-Sep-2010 at 5:14am<br /><br />I have followed the suggestions made in this thread:<br />http://www.ideablade.com/forum/forum_posts.asp?TID=1744&title=minor-problem-using-multiple-data-models-with-the-same-entity-manager<br /><br />I now have the properties manually written in the developer\partial class that is exposed. My app builds without error but when I run it I get the following error:<br />"The connection string for Key 'POCLOOKUPENTITIES' was not found or is invalid.  Check that either a connectionStrings element or EdmKey is defined for this key in the configuration file, or implement a custom IDataSourceKeyResolver."<br /><br />The error occurs when I try to create a list of the lookup table objects i.e. countries from the Lookup edmx. I currently only have one lookup table modeled. Is there any way to debug how the connection string is being read\used? And\or do I need to implement the IDataSourceKeyResolver as the error message suggests?]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 05:14:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8644#8644</guid>
  </item> 
  <item>
   <title>Multiple data models in single project : Thank you for your reply. I have...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8639#8639</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2186<br /><strong>Posted:</strong> 27-Sep-2010 at 12:38am<br /><br />Thank you for your reply. I have installed DevForce 2010 v6.0.5.0 and the build error does not appear.<br /><br />My next problem is that I need to create an association between entities within the separate data models. How can I do this? Should I do this? Is there a sample I can refer to?<br /><br />My high-level objective is to demonstrate the necessary functionality of DevFroce and follow best practice, hence my solution is a POC. With this in mind my above question still stands: Should I have all my entities in one model\edmx file?]]>
   </description>
   <pubDate>Mon, 27 Sep 2010 00:38:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8639#8639</guid>
  </item> 
  <item>
   <title>Multiple data models in single project : Hi,  The issue you decribed...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8608#8608</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> 2186<br /><strong>Posted:</strong> 23-Sep-2010 at 9:27am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>The issue you decribed has been fixed on DevForce2010 6.0.5.0.</DIV><DIV>&nbsp;</DIV><DIV>You can find the latest version of DevForce on our website.</DIV>]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 09:27:26 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8608#8608</guid>
  </item> 
  <item>
   <title>Multiple data models in single project : I am getting the below error when...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8605#8605</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=924" rel="nofollow">xkubr</a><br /><strong>Subject:</strong> 2186<br /><strong>Posted:</strong> 23-Sep-2010 at 2:47am<br /><br />I am getting the below error when building my proof of concept (POC) project with multiple data models.<br /><br />Type 'Poc.DataContext.EntityRelations' already defines a member called 'EntityRelations' with the same parameter types.<br /><br />Scenario & additional details:<br />I am using VS 2010 Prof & DevForce 2010 v6.0.4.0<br />I have a single solution with multiple projects. I have a single project (DataContext) containing all the data models\edmx files. I need multiple data models to separate\group the entities\tables logically, e.g. Customer, Supplier, etc. will exist in one edmx file\model and lookup tables in another. When I created the second (lookups) edmx file\model and added a lookup table e.g. Country, the project did not build, with the above error because "static EntityRelations() {}" exists in both implementations of the EntityRelations partial class within both models (in the generated code). Both models implement the same EntityManager.<br /><br />What am I doing wrong? Should I have all my entities in one model\edmx file? Although I think separating out the entity models is a fairly typical requirement.]]>
   </description>
   <pubDate>Thu, 23 Sep 2010 02:47:51 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2186&amp;PID=8605#8605</guid>
  </item> 
 </channel>
</rss>