Subclass DataSourceItem


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.  But past that, I see no issues.  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:

MicroFour.StrataFrame.Security.SecurityBasics.CurrentUser.UserPk

ChanKK
ChanKK
StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)StrataFrame User (414 reputation)
Group: Forum Members
Posts: 190, Visits: 1.3K
Hi,

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.



Do you foresees any problem with this approach?



Thank you
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search