<?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 : Accessing data before login</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Accessing data before login</description>
  <pubDate>Tue, 21 Apr 2026 12:20:14 -700</pubDate>
  <lastBuildDate>Mon, 17 May 2010 14:58: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=1800</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>Accessing data before login : For anyone following. To get the...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6914#6914</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 17-May-2010 at 2:58pm<br /><br />For anyone following. To get the same functionality I had in the my Classic version. I used the EntityServerQueryInterceptor.ClientCanQuery and ClientCanSave. If the principal was administrator I passed if not I called a static method, using reflection,&nbsp;for the class type (either CanQuery or CanSave) if the method didn't exist then I passed. If it did exist then I evaluated and returned the result.<DIV>&nbsp;</DIV><DIV>I needed the functionality at an entity level not global level. Each entity had different permissions based on many different roles.</DIV>]]>
   </description>
   <pubDate>Mon, 17 May 2010 14:58:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6914#6914</guid>
  </item> 
  <item>
   <title>Accessing data before login : the docs talk about it but don&amp;#039;t...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6852#6852</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 11-May-2010 at 12:20pm<br /><br /><P>the docs talk about it but don't show any examples of how to use it.</P>]]>
   </description>
   <pubDate>Tue, 11 May 2010 12:20:45 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6852#6852</guid>
  </item> 
  <item>
   <title>Accessing data before login :  Originally posted by orcitiesSo...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6851#6851</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 11-May-2010 at 11:45am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by orcities</strong></em><br /><br />So would you suggest the other Guest account or what would you suggest? And it is 2-tier.</td></tr></table> <DIV>&nbsp;</DIV><DIV>For what it's worth, in our application, we implemented a Guest account (like you, it's used during the logon process) and it's seemed to work well.&nbsp; We have a server-side "white-list" of specific tables and stored procedures that are allowed to be used by the Guest account and any attempt to access any other tables/stored procedures/PassthruEsql, etc. raises an Exception.</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 11:45:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6851#6851</guid>
  </item> 
  <item>
   <title>Accessing data before login :  Originally posted by orcitiesWhat...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6850#6850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=613" rel="nofollow">stephenmcd1</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 11-May-2010 at 11:40am<br /><br /><table width="99%"><tr><td class="BBquote"><strong><em>Originally posted by orcities</strong></em><br /><br />What assembly is the IEntityServerSaving interface under. I can not seem to find it. I have tried core, entitymodel and validation.</td></tr></table> <DIV>&nbsp;</DIV><DIV>The IEntityServerSaving interface was how it was done in DevForce 2009.&nbsp; In 2010, they moved to the EntityServerQueryInterceptor and EntityServerSaveInterceptor classes.&nbsp;&nbsp; They are both in the IdeaBlade.EntityModel.Server assembly.</DIV><DIV>&nbsp;</DIV><DIV>You can read about them in the Business Object Persistence.pdf help file.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Hope that helps!</DIV>]]>
   </description>
   <pubDate>Tue, 11 May 2010 11:40:55 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6850#6850</guid>
  </item> 
  <item>
   <title>Accessing data before login : What assembly is the IEntityServerSaving...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6849#6849</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 11-May-2010 at 11:17am<br /><br />What assembly is the IEntityServerSaving interface under. I can not seem to find it. I have tried core, entitymodel and validation. ]]>
   </description>
   <pubDate>Tue, 11 May 2010 11:17:09 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6849#6849</guid>
  </item> 
  <item>
   <title>Accessing data before login : So would you suggest the other...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6848#6848</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 11-May-2010 at 8:09am<br /><br />So would you suggest the other Guest account or what would you suggest? And it is 2-tier.<span style="font-size:10px"><br /><br />Edited by orcities - 11-May-2010 at 8:09am</span>]]>
   </description>
   <pubDate>Tue, 11 May 2010 08:09:25 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6848#6848</guid>
  </item> 
  <item>
   <title>Accessing data before login : The exception is occurring because...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6841#6841</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> 1800<br /><strong>Posted:</strong> 10-May-2010 at 7:46pm<br /><br />The exception is occurring because GetDataSourceKey returns a ClientEdmKey, not the EdmKey type on which the DbConnectionString property is defined.&nbsp;&nbsp; There is a constructor for the EdmKey which takes a ClientEdmKey, but unless your application is 2-tier, you generally don't want to set up a requirement for the IdeaBlade.EntityModel.Edm assembly, which is logically "server side" only.]]>
   </description>
   <pubDate>Mon, 10 May 2010 19:46:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6841#6841</guid>
  </item> 
  <item>
   <title>Accessing data before login : One idea is to create a Guest...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6840#6840</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> 1800<br /><strong>Posted:</strong> 10-May-2010 at 6:24pm<br /><br /><P>One idea is to create a Guest account and login with the EntityManager on that account before the actual user login.&nbsp; You can query for pre-login data on the guest account and restrict its access on the server using the IEntityServerSaving and IEntityServerQuerying interfaces.</P>]]>
   </description>
   <pubDate>Mon, 10 May 2010 18:24:10 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6840#6840</guid>
  </item> 
  <item>
   <title>Accessing data before login : During my login process I want...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6833#6833</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=136" rel="nofollow">orcities</a><br /><strong>Subject:</strong> 1800<br /><strong>Posted:</strong> 10-May-2010 at 12:10pm<br /><br />During my login process I want to access some additional data. I want to present this data on the login screen. How would I go about doing that. I have tried the below but it comes back with null ref exception:<DIV>&nbsp;</DIV><DIV>EntityManager man = EntityManager.DefaultEntityManager;<BR>System.Type t = IdeaBlade.Core.InternalFns.GetIdeaBladeType("IdeaBlade.EntityModel.Edm.EdmKey", true);<BR>_connectionString = t.GetProperty("DbConnectionString").GetValue(man.DataSourceResolver.GetDataSourceKey("EntityManager"), null) as String;</DIV><DIV>&nbsp;</DIV><DIV>Error:</DIV><DIV>Target does not match target type;. </DIV><DIV>&nbsp;</DIV><DIV>Casting to an object isn't the issue. I thing it is the GetResourceKey value that is returned.</DIV><DIV>&nbsp;</DIV><DIV>Any help would be great.</DIV>]]>
   </description>
   <pubDate>Mon, 10 May 2010 12:10:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=1800&amp;PID=6833#6833</guid>
  </item> 
 </channel>
</rss>