Click here to Skip to main content
15,905,915 members
Home / Discussions / C#
   

C#

 
GeneralRe: VFPOLEDB Encoding issue Pin
Dave Kreskowiak17-Dec-19 3:03
mveDave Kreskowiak17-Dec-19 3:03 
GeneralRe: VFPOLEDB Encoding issue Pin
Gerry Schmitz17-Dec-19 5:54
mveGerry Schmitz17-Dec-19 5:54 
Questionhow to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 12:08
Rohan Varendani16-Dec-19 12:08 
AnswerRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 16:57
professionalMycroft Holmes16-Dec-19 16:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 20:57
Rohan Varendani16-Dec-19 20:57 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 21:31
mveRichard MacCutchan16-Dec-19 21:31 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 21:34
Rohan Varendani16-Dec-19 21:34 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 22:00
mveRichard MacCutchan16-Dec-19 22:00 
GeneralRe: how to make a minimalist event manager with c# Pin
Rohan Varendani16-Dec-19 22:35
Rohan Varendani16-Dec-19 22:35 
GeneralRe: how to make a minimalist event manager with c# Pin
Richard MacCutchan16-Dec-19 22:41
mveRichard MacCutchan16-Dec-19 22:41 
GeneralRe: how to make a minimalist event manager with c# Pin
OriginalGriff16-Dec-19 23:10
mveOriginalGriff16-Dec-19 23:10 
AnswerRe: how to make a minimalist event manager with c# Pin
#realJSOP23-Dec-19 0:47
professional#realJSOP23-Dec-19 0:47 
GeneralRe: how to make a minimalist event manager with c# Pin
Mycroft Holmes16-Dec-19 22:29
professionalMycroft Holmes16-Dec-19 22:29 
AnswerRe: how to make a minimalist event manager with c# Pin
#realJSOP23-Dec-19 0:46
professional#realJSOP23-Dec-19 0:46 
AnswerRe: how to make a minimalist event manager with c# Pin
Gerry Schmitz17-Dec-19 6:01
mveGerry Schmitz17-Dec-19 6:01 
QuestionPrint on roll paper using report rdlc and reportviewer Pin
Member 1419221613-Dec-19 8:56
Member 1419221613-Dec-19 8:56 
AnswerRe: Print on roll paper using report rdlc and reportviewer Pin
Richard MacCutchan13-Dec-19 9:20
mveRichard MacCutchan13-Dec-19 9:20 
QuestionTracking Data Changes Pin
Kevin Marois13-Dec-19 8:41
professionalKevin Marois13-Dec-19 8:41 
AnswerRe: Tracking Data Changes Pin
Eddy Vluggen13-Dec-19 11:35
professionalEddy Vluggen13-Dec-19 11:35 
GeneralRe: Tracking Data Changes Pin
Kevin Marois13-Dec-19 11:43
professionalKevin Marois13-Dec-19 11:43 
AnswerRe: Tracking Data Changes Pin
Gerry Schmitz13-Dec-19 12:38
mveGerry Schmitz13-Dec-19 12:38 
GeneralRe: Tracking Data Changes Pin
Kevin Marois16-Dec-19 10:51
professionalKevin Marois16-Dec-19 10:51 
Based on your response, as well as Eddy's, I'm going to assume that my question wasn't clear. So let me clarify.

I need to write out the ID of the logged in user to records that are added, marked as deleted, or modified. There are probably over 50 methods in the DAL. The Create and Update methods take an entity, and the Delete methods take an int Id of the record to mark as deleted.

So, in the UI, the user clicks Add, fills out the data, then clicks Save. or makes changes to an existing record:...
Company ViewModel
public void SaveChanges()
{
    if (Company.Id == 0)
    {
        // Would you assign the ID of the logged in user here before calling the back end?? In EVERY Save method everywhere??
        Company.CreatedById = CurrentUser.Id;

        Company.Id = AppCore.BizObject.AddCompanyAsync(Company);
    }
    else
    {
        // Would you assign the ID of the logged in user here before calling the back end?? In EVERY Save method everywhere??
        Company.LastModifiedById = CurrentUser.Id;

        AppCore.BizObject.UpdateCompanyAsync(Company);
    }
}
Again, the question is, how or where does the ID of the user get assigned to EVERY entity being passed to the back end?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Tracking Data Changes Pin
Gerry Schmitz16-Dec-19 12:06
mveGerry Schmitz16-Dec-19 12:06 
QuestionHow do you make a unit test of an empty linked list? Pin
Melissa Anthonia13-Dec-19 7:56
Melissa Anthonia13-Dec-19 7:56 
AnswerRe: How do you make a unit test of an empty linked list? Pin
Melissa Anthonia13-Dec-19 9:13
Melissa Anthonia13-Dec-19 9:13 

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.