Click here to Skip to main content
15,894,291 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
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 
jschell wrote:
You do not need ids from the DAL to solve that however. All you need is a consistent implementation within each block. You can implement it with nothing more than by incrementing an integer.

Once the DAL receives it then it replaces the references with consistent database ones.
I can't see the net benefit of doing that:

1) You said in a previous reply sending ~1000 requests to the DAL isn't an issue as long as it happens rarely (which I agree with) - but why would you then worry about that single request for new id's?
2) The coding effort I'm doing for id-provision to the client I'm saving in the DAL by not having to replace temporary id's.
3) Let's take a concrete example: The application will be for library management. On the form intended to loan media to a customer there might be (for convenience) a button to invoke the use-case for adding a new customer. After adding the new customer he should automatically be selected for loaning media in the first mentioned form. When working with temporary id's the client would have to requery the customer entity by his external customer-number (or whatever). When using DAL-provided new id's, that's not neccessary.

I'm not saying my planned solution is way better than the more convential solutions but you haven't yet shown why it would be worse.
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 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 1:10
mvePete O'Hanlon26-Feb-15 1:10 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 1:23
professionalmanchanx26-Feb-15 1:23 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 2:06
mvePete O'Hanlon26-Feb-15 2:06 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 2:32
professionalmanchanx26-Feb-15 2:32 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 4:25
mvePete O'Hanlon26-Feb-15 4:25 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
manchanx26-Feb-15 4:56
professionalmanchanx26-Feb-15 4:56 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
jschell26-Feb-15 10:11
jschell26-Feb-15 10:11 
GeneralRe: PrimaryKey-Generation-Strategy in n-Tier Pin
Pete O'Hanlon26-Feb-15 10:16
mvePete O'Hanlon26-Feb-15 10:16 

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.