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

C#

 
AnswerRe: 128 bit Decimal Type Pin
OriginalGriff22-Aug-14 5:19
mveOriginalGriff22-Aug-14 5:19 
GeneralRe: 128 bit Decimal Type Pin
PIEBALDconsult22-Aug-14 5:21
mvePIEBALDconsult22-Aug-14 5:21 
GeneralRe: 128 bit Decimal Type Pin
OriginalGriff22-Aug-14 5:33
mveOriginalGriff22-Aug-14 5:33 
GeneralRe: 128 bit Decimal Type Pin
PIEBALDconsult22-Aug-14 5:48
mvePIEBALDconsult22-Aug-14 5:48 
GeneralRe: 128 bit Decimal Type Pin
OriginalGriff22-Aug-14 5:57
mveOriginalGriff22-Aug-14 5:57 
GeneralRe: 128 bit Decimal Type Pin
PIEBALDconsult22-Aug-14 6:10
mvePIEBALDconsult22-Aug-14 6:10 
GeneralRe: 128 bit Decimal Type Pin
PIEBALDconsult22-Aug-14 5:22
mvePIEBALDconsult22-Aug-14 5:22 
GeneralRe: 128 bit Decimal Type Pin
harold aptroot22-Aug-14 6:34
harold aptroot22-Aug-14 6:34 
AnswerRe: 128 bit Decimal Type Pin
Ravi Bhavnani22-Aug-14 7:58
professionalRavi Bhavnani22-Aug-14 7:58 
AnswerRe: 128 bit Decimal Type Pin
jschell22-Aug-14 10:27
jschell22-Aug-14 10:27 
QuestionSecuGen SDK Pin
Member 1069240122-Aug-14 3:13
Member 1069240122-Aug-14 3:13 
SuggestionRe: SecuGen SDK Pin
Richard MacCutchan22-Aug-14 3:18
mveRichard MacCutchan22-Aug-14 3:18 
GeneralRe: SecuGen SDK Pin
Member 1069240122-Aug-14 3:55
Member 1069240122-Aug-14 3:55 
GeneralRe: SecuGen SDK Pin
Richard MacCutchan22-Aug-14 6:40
mveRichard MacCutchan22-Aug-14 6:40 
GeneralRe: SecuGen SDK Pin
Member 1069240122-Aug-14 11:37
Member 1069240122-Aug-14 11:37 
AnswerRe: SecuGen SDK Pin
Ravi Bhavnani22-Aug-14 12:20
professionalRavi Bhavnani22-Aug-14 12:20 
GeneralRe: SecuGen SDK Pin
Member 1069240123-Aug-14 1:30
Member 1069240123-Aug-14 1:30 
GeneralRe: SecuGen SDK Pin
Member 1069240123-Aug-14 1:51
Member 1069240123-Aug-14 1:51 
AnswerRe: SecuGen SDK Pin
Ravi Bhavnani23-Aug-14 17:17
professionalRavi Bhavnani23-Aug-14 17:17 
GeneralRe: SecuGen SDK Pin
Member 1069240125-Aug-14 1:53
Member 1069240125-Aug-14 1:53 
Questioncode for how to check if a file is encrypted in c# Pin
bandayashoda22-Aug-14 3:11
bandayashoda22-Aug-14 3:11 
AnswerRe: code for how to check if a file is encrypted in c# Pin
Richard MacCutchan22-Aug-14 3:17
mveRichard MacCutchan22-Aug-14 3:17 
QuestionWPF / EF & 'Audit' field updates Pin
cjb11022-Aug-14 2:40
cjb11022-Aug-14 2:40 
I've got an WPF application (without MVVM or similar), using EF6 (via a OData Webservice) and I wondering whats the best place to update some 'audit' fields.

i.e. one entity looks like
C#
public class ActionStatus
{
   public int Id {get;set;}
   public string ActionStatus{get;set;}
   
   [DataType(DataType.Date)]
   public DateTime ValidFrom { get; set; }

   [DataType(DataType.Date)]
   public DateTime ValidTo { get; set; }

   public string ChangedBy { get; set; }
   public DateTime ChangedOn { get; set; }
}


So on the WPF side I've got this displayed in a DataGrid, which saves the data back etc, all good so far.
For the ChangedBy and ChangedOn fields I want the 'system' to update these as required.

But I'm not sure where it would go!

Doing it on the DataGrid events, seems very wrong...far too late, and would need to be done differently if I didn't use a datagrid in the future.

The other places, are the OData WebService, the EF Model, or in the entities themselves, or maybe as another part of the 'system', not sure...

I presume that this is one of the 'lots of solutions/it depends' type of problems, but some guidance would be helpful.
AnswerRe: WPF / EF & 'Audit' field updates Pin
Eddy Vluggen22-Aug-14 5:08
professionalEddy Vluggen22-Aug-14 5:08 
GeneralRe: WPF / EF & 'Audit' field updates Pin
cjb11022-Aug-14 5:27
cjb11022-Aug-14 5:27 

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.