﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Subclass DataSourceItem</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sun, 26 Apr 2026 03:08:57 GMT</lastBuildDate><ttl>20</ttl><item><title>Subclass DataSourceItem</title><link>http://forum.strataframe.net/FindPost22387.aspx</link><description>Hi,&lt;br&gt;
I am having audit log and data encryption in my database. I need to pass current login user name to a stored proc whenever that is any new connection opened. I was thinking to override SqlDataSourceItem.CreateBlankDbConnection() to add call for it.&lt;br&gt;
&lt;br&gt;
Do you foresees any problem with this approach?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Mon, 16 Mar 2009 08:48:33 GMT</pubDate><dc:creator>ChanKK</dc:creator></item><item><title>RE: Subclass DataSourceItem</title><link>http://forum.strataframe.net/FindPost22390.aspx</link><description>You will probably want to create an overload versus changing that one method as there are a number of places that will not expect the parameter.&amp;nbsp; But past that, I see no issues.&amp;nbsp; Also, if the active session is the same as the logged-in user, then you could just add the additional logic without a new parm as well using the security userPK from within that method without the needs for parms:&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.UserPk[/codesnippet]</description><pubDate>Mon, 16 Mar 2009 08:48:33 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>