<?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 : OData and Using IDataSourceKeyResolver</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : OData and Using IDataSourceKeyResolver</description>
  <pubDate>Sun, 12 Apr 2026 12:32:07 -700</pubDate>
  <lastBuildDate>Mon, 30 Jan 2012 01:56:07 -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=3226</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>OData and Using IDataSourceKeyResolver :   Hi, Thanks for the reply...In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12573#12573</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1380" rel="nofollow">markfinch</a><br /><strong>Subject:</strong> 3226<br /><strong>Posted:</strong> 30-Jan-2012 at 1:56am<br /><br />Hi, Thanks for the reply...<div>&nbsp;</div><div>In the end i took your advice and used session variables to store the key to pass to the entity manager in createdatasource. I added a layer of basic authentication to the odata feed which enabled me to catch the user logging in/requesting a page and using their credentials found the appropriate key for their database and stored it in a session variable. When the datasource was created I queried the session variables, got the key and set the datasource. Super!!</div><div>&nbsp;</div><div>Thanks for your help</div>]]>
   </description>
   <pubDate>Mon, 30 Jan 2012 01:56:07 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12573#12573</guid>
  </item> 
  <item>
   <title>OData and Using IDataSourceKeyResolver : DevForce uses the data source...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12524#12524</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 3226<br /><strong>Posted:</strong> 23-Jan-2012 at 11:06am<br /><br />DevForce uses the data source key extension passed into an EntityManager.&nbsp; That information is actually carried from client to server, and when the IDataSourceKeyResolver is called the extension originally set in the EM is what's used.<DIV>&nbsp;</DIV><DIV>In OData, since we&nbsp;don't have any control over the client, you'll need to pass the extension into the EntityManager used by the OData service.&nbsp; You can do this by overriding the CreateDataSource method in the OData service, so that&nbsp;you can then construct your EntityManager with the appropriate extension.&nbsp; As for knowing that extension, you might pass it with the request, or retrieve it from a previously saved&nbsp;session variable.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 23 Jan 2012 11:06:53 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12524#12524</guid>
  </item> 
  <item>
   <title>OData and Using IDataSourceKeyResolver :   Hi All,I am currently in the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12516#12516</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1380" rel="nofollow">markfinch</a><br /><strong>Subject:</strong> 3226<br /><strong>Posted:</strong> 21-Jan-2012 at 7:22am<br /><br />Hi All,<div>&nbsp;</div><div>I am currently in the process of extending my Silverlight application (which uses Devforce) to also include a simplifed HTML5/JQuery version. I noticed that it is quite simple to enable OData on the server side which I did and tested working fine, but now I have hit a problem which I do not know how to solve.</div><div>&nbsp;</div><div>At the minute the silverlight app authenticates and after authentication uses a key specific to the user to identify what database to connect to. This key is passed into Devforce (as a KeyExtension)&nbsp;when creating the datasource which is used on the server side in a custom <font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas"><font color="#2b91af" size="2" face="C&#111;nsolas">IDataSourceKeyResolver.</font></font></font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas"><font color="#000000">I already know that the <font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas"><font size="2" face="C&#111;nsolas">IDataSourceKeyResolver is being called when querying the OData feed but the keyExtnesion is blank. The problem I have is how to pass this key into the OData feed so that the keyExtension is specified.</font></font></font></font></font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">Any help would be greatly appreciated</font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">Thanks in advance</font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas">Mark</font></div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div><div><font size="2" face="C&#111;nsolas"></font>&nbsp;</div>]]>
   </description>
   <pubDate>Sat, 21 Jan 2012 07:22:48 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3226&amp;PID=12516#12516</guid>
  </item> 
 </channel>
</rss>