Print Page | Close Window

Storing creation/modification user

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2964
Printed Date: 24-Apr-2026 at 1:15pm


Topic: Storing creation/modification user
Posted By: Engo
Subject: Storing creation/modification user
Date Posted: 20-Sep-2011 at 12:17pm
I am currently trying to build an application where we want to store the last modification/creation user in a database column for nearly every table. I tried to solve this problem by using the attribute interception but I could not find a way to get the user information there. Maybe there is a better way if I want to store login information in a table before it is written to the database.



Replies:
Posted By: sbelini
Date Posted: 26-Sep-2011 at 10:50am
Hi Engo,

I think you are talking about auditing entities.

There is a forum post that addresses the possible situations. You will find it at  http://www.ideablade.com/forum/forum_posts.asp?TID=2717&KW=audit&PID=10923&title=auditing-inserts-with-identity-columns#10923 - http://www.ideablade.com/forum/forum_posts.asp?TID=2717&KW=audit&PID=10923&title=auditing-inserts-with-identity-columns#10923 .

Regards,
   Silvio.


Posted By: Engo
Date Posted: 29-Sep-2011 at 4:57am
Thanks, this was exactly what I was looking for.



Print Page | Close Window