<?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 : Intercepting user activity</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Intercepting user activity</description>
  <pubDate>Tue, 12 May 2026 21:33:52 -700</pubDate>
  <lastBuildDate>Fri, 17 May 2013 17:01:22 -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=4141</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>Intercepting user activity : For those following along in this...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16359#16359</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> 4141<br /><strong>Posted:</strong> 17-May-2013 at 5:01pm<br /><br />For those following along in this thread, see my response on the other thread <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=3855&amp;PID=16338&amp;title=value-cannot-be-null-getting-ientityqueryt-when-using-usepersistentdbc&#111;nnecti&#111;npersessi&#111;n#16338" target="_blank">here</a>.]]>
   </description>
   <pubDate>Fri, 17 May 2013 17:01:22 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16359#16359</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Hello stephenmcd1,as I wrote you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16337#16337</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 15-May-2013 at 7:59am<br /><br />Hello <span id="userPro16328" ="msgSidePro" title="View Drop Down">stephenmcd1,<br>as I wrote you on the other thread can you please provide me the implementation of ProviderRow?<br>I've managed to load my factory from web.config but I got the debugger continue breaking on <br><br>Factory<br><br>&nbsp;&nbsp;&nbsp; public override DbConnection CreateConnection()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return new CustomDbConnection();//here<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>which is called by CustomDbConnection:<br><br>&nbsp;protected override string DefaultWrappedProviderName<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get { return Invariants.Test; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>Why this happen? It's an huge effort for you to produce me a simple mockup project? Thanks<br></span>]]>
   </description>
   <pubDate>Wed, 15 May 2013 07:59:27 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16337#16337</guid>
  </item> 
  <item>
   <title>Intercepting user activity :  Hello stephenmcd1,Thanks a lot...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16331#16331</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 15-May-2013 at 12:50am<br /><br />Hello <span id="userPro16328" ="msgsidepro"="" title="View Drop Down">stephenmcd1,<br>Thanks a lot I'll check this out and if I got any question I'll ask you for help...thanks a lot<br><br>Paolo<br></span>]]>
   </description>
   <pubDate>Wed, 15 May 2013 00:50:41 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16331#16331</guid>
  </item> 
  <item>
   <title>Intercepting user activity : You can take a look at a post...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16328#16328</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> 4141<br /><strong>Posted:</strong> 14-May-2013 at 8:54am<br /><br />You can take a look at a post I made in another topic on this forum. &nbsp;We need to do something very&nbsp;similar&nbsp;to you - every time DevForce opens a SQL Connection (for querying or saving), we needed to 'mark' the connection with what user was active in the application. &nbsp;Then triggers and procedures can see what the current user is to perform logging, security, etc. &nbsp;In our case, we 'mark' the connection by setting data in the context_info property just like you seem to be thinking. &nbsp;We have a stored procedure that takes in a few parameters (an int and a GUID) and takes care of converting them to the format needed for context_info. &nbsp;We've found that setting context_info seems a lot faster than having to deal with temp tables....especially since connections will be opened/closed all the time.<div><br></div><div>Here is the post: &nbsp;<a href="http://www.ideablade.com/forum/forum_posts.asp?TID=3855&amp;PID=15476&amp;title=value-cannot-be-null-getting-ientityqueryt-when-using-usepersistentdbc&#111;nnecti&#111;npersessi&#111;n#15476" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=3855&amp;PID=15476&amp;title=value-cannot-be-null-getting-ientityqueryt-when-using-usepersistentdbconnectionpersession#15476</a>&nbsp;(also see subsequent posts that contain additional information)</div>]]>
   </description>
   <pubDate>Tue, 14 May 2013 08:54:32 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16328#16328</guid>
  </item> 
  <item>
   <title>Intercepting user activity : It&amp;#039;s possible to provide...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16327#16327</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 14-May-2013 at 3:25am<br /><br />It's possible to provide me a sample using this? even on pvt mail (the one I use for license)<br>It's quite urgent<br>Thanks<br>]]>
   </description>
   <pubDate>Tue, 14 May 2013 03:25:39 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16327#16327</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Hello,I&amp;#039;ve found this htt...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16326#16326</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 14-May-2013 at 3:11am<br /><br />Hello,<br>I've found this http://msdn.microsoft.com/en-us/library/ms189252.aspx<br><br>it's possible to set this SessionContextInformation? is enougth to set this.Context = myValue in the EntityQueryInterceptor?<br><br>Thanks<br>]]>
   </description>
   <pubDate>Tue, 14 May 2013 03:11:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16326#16326</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Silvio, how can I pass the user...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16325#16325</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 13-May-2013 at 11:38pm<br /><br />Silvio, how can I pass the user guid to the DB layer? if I use trigger I can handle the update/delete of a row but how can I track that user123 has done it? it my mind if I can use the devforce sqlconnection I can<br><br>write on a temp table the userid and the sqlconnection id, using the same sqlconnection with devforce I do what I need (and I can have on a trigger <span><span id="_ctl5_ctlTopic"><span id="_ctl5_ctlTopic_ctlPanelBar"><span id="_ctl5_ctlTopic_ctlPanelBar_ctlTopicsRepeater__ctl11_lblFullMessage">the select @@SPID (so I know the connection, i can look on @TMP for the id) then after the call of devforce I can remove it from @TMP<br><br>my idea is<br><br>1)getting devforce sqlconnection<br>2) use a storedprocedure to insert on @TMP userid, @SPID<br>3)execute devorce<br>4)remove from @TMP the previous entry<br><br>Is this impossible?<br><br>Thanks<br></span></span></span></span>]]>
   </description>
   <pubDate>Mon, 13 May 2013 23:38:03 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16325#16325</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Paolo,  I don&amp;#039;t understand...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16320#16320</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> 4141<br /><strong>Posted:</strong> 13-May-2013 at 10:30am<br /><br />Paolo,<br /><br />I don't understand the question. <br />If you are using triggers, there shouldn't be a need to involve DevForce as it could be completely handled on the DB.]]>
   </description>
   <pubDate>Mon, 13 May 2013 10:30:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16320#16320</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Silvio,it&amp;#039;s possible to get...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16313#16313</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 10-May-2013 at 5:19am<br /><br />Silvio,<br>it's possible to get the SqlConnection Current IdeaBlade query run's on? If So I can make a call using it&nbsp; before the ExecuteQuery ?<br><br>In thay way I can :<br><br>1) set a trigger on the table I need to monitor<br>2)I can write to a @TMP table an entry passing the ID (via SP)<br>3)execute call<br>4)call another entry on the same connection to delete from the @TMP table the entry<br><br><br><br>]]>
   </description>
   <pubDate>Fri, 10 May 2013 05:19:23 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16313#16313</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Paolo,  In the interceptor, you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16306#16306</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> 4141<br /><strong>Posted:</strong> 08-May-2013 at 9:31am<br /><br />Paolo,<br /><br />In the interceptor, you will not be able to differentiate a "query" SP from a "save" SP.<br />I see 2 possibilities:<br />1) Handle the auditing of stored proc saved entities inside the stored proc;<br />2) Rather then handling auditing in the app, do it via a DB trigger.<br /><br />Kind regards,<br />&nbsp;&nbsp;&nbsp;Silvio.]]>
   </description>
   <pubDate>Wed, 08 May 2013 09:31:54 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16306#16306</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Hello Silvio,this can work with...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16302#16302</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 07-May-2013 at 11:13pm<br /><br />Hello Silvio,<br>this can work with entities...but what about calls made via SP? I've seen that using EntityQueryInterceptor I get SP as well... is there a way of disciminating if it's an update/save? maybe passing a parameter....<br><br>Thanks<br>]]>
   </description>
   <pubDate>Tue, 07 May 2013 23:13:37 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16302#16302</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Paolo,  I&amp;#039;d suggest doing...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16300#16300</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> 4141<br /><strong>Posted:</strong> 07-May-2013 at 11:01am<br /><br />Paolo,<br /><br />I'd suggest doing it in the SaveInterceptor, where you'd be able to create the "audit" entities and add them to the list of entities to be saved (i.e. Added/Modified/Deleted) before calling base.SaveChanges().<br /><br />The only potential issue is with Added entities with Identity columns. A search in our forum will bring up a few threads discussing this. One of them is <a href="http://www.ideablade.com/forum/forum_posts.asp?TID=2717&KW=audit&PN=1&title=auditing-inserts-with-identity-columns" target="_blank">http://www.ideablade.com/forum/forum_posts.asp?TID=2717&KW=audit&PN=1&title=auditing-inserts-with-identity-columns</a>.]]>
   </description>
   <pubDate>Tue, 07 May 2013 11:01:17 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16300#16300</guid>
  </item> 
  <item>
   <title>Intercepting user activity : Hello,we&amp;#039;ve requested an...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16297#16297</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1136" rel="nofollow">pponzano</a><br /><strong>Subject:</strong> 4141<br /><strong>Posted:</strong> 07-May-2013 at 5:13am<br /><br />Hello,<br>we've requested an implementation on our service to log all the stuff a user do, our application uses some direct access to the DB with IdeaBlade EF&nbsp; and some with storedprocedure (always using IDEABLADE).... what's the best approach to log everything? our DB engineer proposed to store on a temp table the user id before and after an user completed the action and then via trigger to store data in a table... I think there's an easy way with interceptors... but don't know where to start from... can you please provide me some guidelines that covers in a single point the EF / StoredProcedure?<br><br>Thanks in advance<br>Paolo<br>]]>
   </description>
   <pubDate>Tue, 07 May 2013 05:13:28 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=4141&amp;PID=16297#16297</guid>
  </item> 
 </channel>
</rss>