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

Design and Architecture

 
AnswerRe: FTPing Only Changed Files Pin
Eddy Vluggen8-Feb-18 8:19
professionalEddy Vluggen8-Feb-18 8:19 
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 
I'm working on a C/WPF/SQL Server app.

My SQL tables all have the following columns:
CreatedById         INT NOT NULL FOREIGN KEY REFERENCES Users(UserId),
CreatedDt           DATETIME NOT NULL,
LastModifiedById    INT NULL FOREIGN KEY REFERENCES Users(UserId),
LastModifiedDT      DATETIME NULL,
DeletedById         INT NULL FOREIGN KEY REFERENCES Users(UserId),
DeletedDt           DATETIME NULL

When the user logs into the app the login function returns a User object which is stored on the MainWindowViewModel.

The question is this: What's the righ way to get the ID of he logged in user into the DAL?

I could simply pass the use Id into every DAL function, but I'd like to hear other suggestions.

Thanks
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Passing UserId To DAL Pin
Nathan Minier22-Jan-18 1:37
professionalNathan Minier22-Jan-18 1:37 
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 

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.