Click here to Skip to main content
15,890,512 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Information Relation Modeling Pin
Eddy Vluggen2-Mar-15 8:00
professionalEddy Vluggen2-Mar-15 8:00 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)2-Mar-15 8:41
professionalDaniel Lieberwirth (BrainInBlack)2-Mar-15 8:41 
AnswerRe: Information Relation Modeling Pin
Gerry Schmitz3-Mar-15 13:30
mveGerry Schmitz3-Mar-15 13:30 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)4-Mar-15 2:02
professionalDaniel Lieberwirth (BrainInBlack)4-Mar-15 2:02 
GeneralRe: Information Relation Modeling Pin
Gerry Schmitz4-Mar-15 23:27
mveGerry Schmitz4-Mar-15 23:27 
GeneralRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)5-Mar-15 2:28
professionalDaniel Lieberwirth (BrainInBlack)5-Mar-15 2:28 
NewsRe: Information Relation Modeling Pin
Daniel Lieberwirth (BrainInBlack)7-Mar-15 4:34
professionalDaniel Lieberwirth (BrainInBlack)7-Mar-15 4:34 
QuestionPrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 7:21
professionalmanchanx25-Feb-15 7:21 
For the generation of primary keys in n-Tier applications I only ever see two strategies: Either client-side generation of a GUID or a temporary Integer that gets replaced by the DAL and the DAL reports back to the client the value that was actually assigned.

My alternative idea is to let the client request 1..n new primary key value(s) from the DAL whenever it needs one/some. This way I wouldn't have to cope with ugly GUID's (I don't plan for DB-merge-ability) and I avoid awkward client-logic for replacing temporary primary keys.

Have I simply not yet found some projects that do it this way or is there some flaw in that strategy that I'm not aware of?

- Sebastian
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Wendelius25-Feb-15 7:57
mentorWendelius25-Feb-15 7:57 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:24
professionalmanchanx25-Feb-15 21:24 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell26-Feb-15 9:45
jschell26-Feb-15 9:45 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 20:20
professionalmanchanx26-Feb-15 20:20 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell27-Feb-15 10:19
jschell27-Feb-15 10:19 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx27-Feb-15 20:00
professionalmanchanx27-Feb-15 20:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell4-Mar-15 9:00
jschell4-Mar-15 9:00 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx5-Mar-15 3:13
professionalmanchanx5-Mar-15 3:13 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell6-Mar-15 10:52
jschell6-Mar-15 10:52 
AnswerRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 13:21
professionalMycroft Holmes25-Feb-15 13:21 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 21:25
professionalmanchanx25-Feb-15 21:25 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Mycroft Holmes25-Feb-15 21:49
professionalMycroft Holmes25-Feb-15 21:49 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx25-Feb-15 22:18
professionalmanchanx25-Feb-15 22:18 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon25-Feb-15 23:07
mvePete O'Hanlon25-Feb-15 23:07 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 0:06
professionalmanchanx26-Feb-15 0:06 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 0:17
mvePete O'Hanlon26-Feb-15 0:17 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 1:04
professionalmanchanx26-Feb-15 1:04 

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.