Click here to Skip to main content
15,888,065 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: FTPing Only Changed Files Pin
jschell8-Feb-18 13:39
jschell8-Feb-18 13:39 
QuestionI'm looking for a cross platform rich GUI C# framework Pin
splinefx28-Jan-18 22:58
splinefx28-Jan-18 22:58 
AnswerRe: I'm looking for a cross platform rich GUI C# framework Pin
Nathan Minier29-Jan-18 1:21
professionalNathan Minier29-Jan-18 1:21 
AnswerRe: I'm looking for a cross platform rich GUI C# framework Pin
Eddy Vluggen29-Jan-18 3:04
professionalEddy Vluggen29-Jan-18 3:04 
QuestionBi-directional synchronization between multiple mysql databases Pin
Freelancers22-Jan-18 0:26
Freelancers22-Jan-18 0:26 
AnswerRe: Bi-directional synchronization between multiple mysql databases Pin
Nathan Minier22-Jan-18 1:24
professionalNathan Minier22-Jan-18 1:24 
QuestionPassing UserId To DAL Pin
Kevin Marois8-Jan-18 18:30
professionalKevin Marois8-Jan-18 18:30 
AnswerRe: Passing UserId To DAL Pin
Nathan Minier22-Jan-18 1:37
professionalNathan Minier22-Jan-18 1:37 
The "right" way is entirely contingent on what you want to achieve.

If you're trying to provide a security layer, it could be parsed through an authorization provider with full transactional change tracking posted to a completely different database. This would, by necessity, have the transaction and user info passed to an authorization (or even AAA) provider, which would pass the results of the authorization to the DAL on success in an object that should contain the UserId regardless.

If you're looking for basic audit trails, a simple M-M mapping table that triggers off of update events would be just fine (user, table, item id, SQL query OR enumeration describing transaction). You could also create multiple M-M tables for each data table to provide robust relational support. Using this method, the context information, including the UserId, can be passed through an event handler rather than as a parameter.

If you just want the UserId as a creator, you can just pass the value or have it available in a context that is passed to the DAL on construction.

And there are, of course, other approaches ad nauseum.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

AnswerRe: Passing UserId To DAL Pin
Eddy Vluggen25-Jan-18 8:00
professionalEddy Vluggen25-Jan-18 8:00 
GeneralRe: Passing UserId To DAL Pin
Kevin Marois25-Jan-18 8:24
professionalKevin Marois25-Jan-18 8:24 
GeneralRe: Passing UserId To DAL Pin
Eddy Vluggen25-Jan-18 8:33
professionalEddy Vluggen25-Jan-18 8:33 
GeneralRe: Passing UserId To DAL Pin
Kevin Marois25-Jan-18 8:37
professionalKevin Marois25-Jan-18 8:37 
GeneralRe: Passing UserId To DAL Pin
Eddy Vluggen25-Jan-18 8:42
professionalEddy Vluggen25-Jan-18 8:42 
AnswerRe: Passing UserId To DAL Pin
jschell27-Jan-18 6:36
jschell27-Jan-18 6:36 
GeneralRe: Passing UserId To DAL Pin
Gerry Schmitz27-Jan-18 11:54
mveGerry Schmitz27-Jan-18 11:54 
Questionhave u solved the code? Pin
chitaranjan pradhan8-Jan-18 8:54
chitaranjan pradhan8-Jan-18 8:54 
AnswerRe: have u solved the code? Pin
Pete O'Hanlon8-Jan-18 9:11
mvePete O'Hanlon8-Jan-18 9:11 
GeneralRe: have u solved the code? Pin
jschell20-Jan-18 5:56
jschell20-Jan-18 5:56 
QuestionAzure Pin
Mycroft Holmes29-Dec-17 20:18
professionalMycroft Holmes29-Dec-17 20:18 
AnswerRe: Azure Pin
Gerry Schmitz30-Dec-17 6:28
mveGerry Schmitz30-Dec-17 6:28 
GeneralRe: Azure Pin
Mycroft Holmes30-Dec-17 13:47
professionalMycroft Holmes30-Dec-17 13:47 
QuestionCredential stuffing / Passing Auth cookie to current user Pin
SEJohnson9-Dec-17 5:00
SEJohnson9-Dec-17 5:00 
QuestionJSON size Pin
Eytukan28-Nov-17 21:07
Eytukan28-Nov-17 21:07 
AnswerRe: JSON size Pin
Eddy Vluggen29-Nov-17 0:58
professionalEddy Vluggen29-Nov-17 0:58 
GeneralRe: JSON size Pin
Eytukan29-Nov-17 22:14
Eytukan29-Nov-17 22:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.