Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
AnswerRe: Creating Various Files Using C# Pin
Abhinav S22-Jan-13 19:35
Abhinav S22-Jan-13 19:35 
AnswerRe: Creating Various Files Using C# Pin
Rahul Rajat Singh22-Jan-13 19:38
professionalRahul Rajat Singh22-Jan-13 19:38 
AnswerRe: Creating Various Files Using C# Pin
OriginalGriff22-Jan-13 21:33
mveOriginalGriff22-Jan-13 21:33 
QuestionC# update a audit table Pin
dcof22-Jan-13 15:56
dcof22-Jan-13 15:56 
AnswerRe: C# update a audit table Pin
Mycroft Holmes22-Jan-13 16:28
professionalMycroft Holmes22-Jan-13 16:28 
AnswerRe: C# update a audit table Pin
PIEBALDconsult22-Jan-13 18:25
mvePIEBALDconsult22-Jan-13 18:25 
GeneralRe: C# update a audit table Pin
dcof23-Jan-13 4:41
dcof23-Jan-13 4:41 
GeneralRe: C# update a audit table Pin
PIEBALDconsult23-Jan-13 5:46
mvePIEBALDconsult23-Jan-13 5:46 
Let's say you have a table containing customer orders. An order has an ID, a status, and a number of other things including creation date and user. As the order is processed, the status will change and you want to be able to report each status change.

Rather than having one row and overwriting the previous values, you can create a new row with the new values.

RowID,PreviousID,NextID,OrderID,CreateDate,CreateUser,Status,...
1,null,2,12345,2013-01-02,Alice,New,...
2,1,3,12345,2013-01-04,Bob,Filled,...
3,2,4,12345,2013-01-06,Carol,Shipped,...
4,3,null,12345,2013-01-10,Ted,Received,...

In this way you can easily see the details of an order's life all in one table. When a new state is created, the only change you make to the previous state is to set the NextID field. And the current record is the one with NextID==null.
QuestionTwo others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 6:26
Czajo22-Jan-13 6:26 
AnswerRe: Two others BindingNavigators in one form. How? Pin
Mycroft Holmes22-Jan-13 15:33
professionalMycroft Holmes22-Jan-13 15:33 
GeneralRe: Two others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 21:19
Czajo22-Jan-13 21:19 
QuestionRunning an exe Pin
PozzaVecia22-Jan-13 5:50
PozzaVecia22-Jan-13 5:50 
AnswerRe: Running an exe Pin
R. Giskard Reventlov22-Jan-13 6:07
R. Giskard Reventlov22-Jan-13 6:07 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 6:16
PozzaVecia22-Jan-13 6:16 
GeneralRe: Running an exe Pin
Pete O'Hanlon22-Jan-13 6:51
mvePete O'Hanlon22-Jan-13 6:51 
GeneralRe: Running an exe Pin
PIEBALDconsult22-Jan-13 7:14
mvePIEBALDconsult22-Jan-13 7:14 
AnswerRe: Running an exe Pin
PIEBALDconsult22-Jan-13 6:15
mvePIEBALDconsult22-Jan-13 6:15 
SuggestionRe: Running an exe Pin
Richard MacCutchan22-Jan-13 6:34
mveRichard MacCutchan22-Jan-13 6:34 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 6:57
PozzaVecia22-Jan-13 6:57 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 7:04
professionalJibesh22-Jan-13 7:04 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 7:14
PozzaVecia22-Jan-13 7:14 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 7:34
professionalJibesh22-Jan-13 7:34 
GeneralRe: Running an exe Pin
Richard MacCutchan22-Jan-13 7:15
mveRichard MacCutchan22-Jan-13 7:15 
AnswerRe: Running an exe Pin
jschell22-Jan-13 8:09
jschell22-Jan-13 8:09 
AnswerRe: Running an exe Pin
Joe Woodbury22-Jan-13 10:14
professionalJoe Woodbury22-Jan-13 10: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.