<?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 : Custom DataSourceKeyResolver Issue</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2009 : Custom DataSourceKeyResolver Issue</description>
  <pubDate>Sat, 11 Apr 2026 16:16:18 -700</pubDate>
  <lastBuildDate>Fri, 05 Mar 2010 16:25:17 -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=1673</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>Custom DataSourceKeyResolver Issue : Hi robdrye - We received your...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1673&amp;PID=6307#6307</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=477" rel="nofollow">ting</a><br /><strong>Subject:</strong> 1673<br /><strong>Posted:</strong> 05-Mar-2010 at 4:25pm<br /><br />Hi robdrye - We received your email and will follow up with you there.]]>
   </description>
   <pubDate>Fri, 05 Mar 2010 16:25:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1673&amp;PID=6307#6307</guid>
  </item> 
  <item>
   <title>Custom DataSourceKeyResolver Issue : We have been testing out an implementation...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1673&amp;PID=6299#6299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=553" rel="nofollow">robdrye</a><br /><strong>Subject:</strong> 1673<br /><strong>Posted:</strong> 04-Mar-2010 at 6:05pm<br /><br />We have been testing out an implementation of IDataSourceKeyResolver recently and all appeared to be working perfectly until we attempt to save changes on newly created Entities.&nbsp; We consistently get this Exception:<DIV>&nbsp;</DIV><DIV>IdGenerator problem - not all temp ids converted to permanent ids./nIf you are using auto-incrementing ids check that the FixupTempIds SaveOption is set to InSaveListOnly./nThis may also occur if your custom IIdGenerator was not found or its GetRealIdMap method did not/nprovide a corresponding real id for each temp id.</DIV><DIV>&nbsp;</DIV><DIV>As soon as we disable the IDataSourceKeyResolver implementation and go back to the config files for the edm keys all is well.</DIV><DIV>&nbsp;</DIV><DIV>This is the IDataSourceKeyResolver implementation we have been testing with:</DIV><DIV>&nbsp;</DIV><DIV>&#091;Serializable&#093;<BR>internal class SessionDataSourceKeyResolver : IDataSourceKeyResolver<BR>{</DIV><DIV>&nbsp;&nbsp;&nbsp; public IDataSourceKey GetKey(string keyName, string keyExtension, bool onServer)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string connString = SystemSettings.GetConnectionString(SystemConnectionType.System).ConnectionString;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string provider = SystemSettings.DataProvider;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string container = GetContainer(keyName);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string edmx = "metadata=res://*/DataModel.{0}.csdl|res://*/DataModel.{1}.ssdl|res://*/DataModel.{2}.msl;provider={3};provider connection string=\"{4};MultipleActiveResultSets=True\"";<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; string devConn = String.Format(edmx, new object&#091;&#093; { container, container, container, provider, connString });</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new ClientEdmKey(keyName, devConn, ("PBI.Workspace.DataModel." + container), false, new string&#091;&#093; { "PBI.Workspace" }, "", new string&#091;&#093; { });<BR>&nbsp;&nbsp;&nbsp; }<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Any feedback is much appreciated.</DIV>]]>
   </description>
   <pubDate>Thu, 04 Mar 2010 18:05:43 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1673&amp;PID=6299#6299</guid>
  </item> 
 </channel>
</rss>