Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:12
ahf13-Feb-03 11:12 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:26
ahf13-Feb-03 11:26 
GeneralRe: dvd reading Pin
Furty13-Feb-03 18:55
Furty13-Feb-03 18:55 
GeneralRe: dvd reading Pin
ahf13-Feb-03 21:24
ahf13-Feb-03 21:24 
GeneralRe: dvd reading Pin
ahf13-Feb-03 21:42
ahf13-Feb-03 21:42 
GeneralRe: dvd reading Pin
Heath Stewart14-Feb-03 11:15
protectorHeath Stewart14-Feb-03 11:15 
GeneralA simple ADO.NET and table design question Pin
DionChen13-Feb-03 5:42
DionChen13-Feb-03 5:42 
GeneralRe: A simple ADO.NET and table design question Pin
SimonS13-Feb-03 20:28
SimonS13-Feb-03 20:28 
I'm doing a Win32 (commercial) application currently and this is a simplified view of how I do it.

For inserts:
- get user input from screen
- call business class to do validation, etc...
- business class calls generic data layer passing GUID as primary key
I use the GUID class to prepare a unique number. This way it will work for several users.

For updates:
- user selects a certain row
- business class uses this primary key to retrieve data along with a concurrency ID. This could be a timestamp in SQL, but I'm using another GUID instead.
- user does edit
- business class calls data layer, passing editted rows fields, GUID and concurrency ID
- data layer checks that the current concurrency ID still matches the one in the DB and then does UPDATE.

HTH


Cheers,
Simon

"The day I swan around in expensive suits is the day I hope someone puts a bullet in my head.", Chris Carter.
animation mechanics in SVG       (latest pic 1) (latest pic 2)

Generaldatagrid column width Pin
endforward13-Feb-03 3:33
endforward13-Feb-03 3:33 
GeneralRe: datagrid column width Pin
A.Wegierski14-Feb-03 2:43
A.Wegierski14-Feb-03 2:43 
GeneralFirstly Hi to everyone :-) 2nd......... Pin
AndyBrew13-Feb-03 3:21
AndyBrew13-Feb-03 3:21 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
Ayyaz13-Feb-03 5:42
Ayyaz13-Feb-03 5:42 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
A.Wegierski14-Feb-03 2:26
A.Wegierski14-Feb-03 2:26 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
Jim Stewart14-Feb-03 6:34
Jim Stewart14-Feb-03 6:34 
GeneralNeed help on Intranet Web App Pin
TeraCoder13-Feb-03 1:13
TeraCoder13-Feb-03 1:13 
GeneralRe: Need help on Intranet Web App Pin
leppie13-Feb-03 6:39
leppie13-Feb-03 6:39 
Generalproblem passing struct through web service Pin
yccheok12-Feb-03 18:25
yccheok12-Feb-03 18:25 
GeneralRe: problem passing struct through web service Pin
leppie13-Feb-03 6:19
leppie13-Feb-03 6:19 
GeneralRe: problem passing struct through web service Pin
SimonS13-Feb-03 20:29
SimonS13-Feb-03 20:29 
GeneralQuick Question About RichTextBox Pin
jtmtv1812-Feb-03 15:48
jtmtv1812-Feb-03 15:48 
GeneralRe: Quick Question About RichTextBox Pin
leppie13-Feb-03 6:23
leppie13-Feb-03 6:23 
GeneralRe: Quick Question About RichTextBox Pin
jtmtv1813-Feb-03 14:06
jtmtv1813-Feb-03 14:06 
GeneralAssembly problem (System.Net) Pin
Sprudling12-Feb-03 14:34
Sprudling12-Feb-03 14:34 
GeneralIWebControl2.Navigate2 Method Pin
Darryl Borden12-Feb-03 11:52
Darryl Borden12-Feb-03 11:52 
GeneralRe: IWebControl2.Navigate2 Method Pin
Furty12-Feb-03 18:41
Furty12-Feb-03 18:41 

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.