Click here to Skip to main content
15,895,848 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 0:25
professionalEddy Vluggen16-Apr-14 0:25 
GeneralRe: A better way to do it? Pin
Cee Ann16-Apr-14 2:37
Cee Ann16-Apr-14 2:37 
GeneralRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 8:31
professionalEddy Vluggen16-Apr-14 8:31 
GeneralRe: A better way to do it? Pin
Cee Ann16-Apr-14 16:09
Cee Ann16-Apr-14 16:09 
AnswerRe: A better way to do it? Pin
Eddy Vluggen16-Apr-14 22:29
professionalEddy Vluggen16-Apr-14 22:29 
JokeRe: A better way to do it? Pin
Wayne Gaylard16-Apr-14 23:09
professionalWayne Gaylard16-Apr-14 23:09 
GeneralRe: A better way to do it? Pin
Cee Ann17-Apr-14 22:03
Cee Ann17-Apr-14 22:03 
GeneralRe: A better way to do it? Pin
Eddy Vluggen18-Apr-14 0:32
professionalEddy Vluggen18-Apr-14 0:32 
Cee Ann wrote:
What if StudentId is a foreign key to other table
Then you could name it after the table it comes from, but it'd be better to come up with a descriptive name. Take "Employee" and "Person" as a fictive example with multiple references to itself;

Employee
Id
Name
FK_Manager
FK_DedicatedDriver

Person
Id
FK_Mother
FK_Father

As you can see, there's no mention of the fact in the fieldname to the table. That's because we can assume that people will recognize "mother" as a person, and "manager" as an employee. If it weren't, "FK_MotherPerson" might be needed.

Cee Ann wrote:
Write 'StudentId' as fieldname in the other tables
It's not an id, but a foreign key; it's something that points to the id of a record in a different table Smile | :)

That information is also obvious from the above naming; anything with a "FK" points to the Id-field of another table.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

GeneralRe: A better way to do it? Pin
Cee Ann20-Apr-14 19:28
Cee Ann20-Apr-14 19:28 
GeneralRe: A better way to do it? Pin
Eddy Vluggen21-Apr-14 2:15
professionalEddy Vluggen21-Apr-14 2:15 
QuestionC# threading with a child Pin
tomnmillie@yahoo.com14-Apr-14 8:15
tomnmillie@yahoo.com14-Apr-14 8:15 
AnswerRe: C# threading with a child Pin
jschell14-Apr-14 11:35
jschell14-Apr-14 11:35 
AnswerRe: C# threading with a child Pin
Bernhard Hiller14-Apr-14 22:50
Bernhard Hiller14-Apr-14 22:50 
GeneralRe: C# threading with a child Pin
tomnmillie@yahoo.com15-Apr-14 4:55
tomnmillie@yahoo.com15-Apr-14 4:55 
QuestionBest way to Design of Desktop Application Pin
Member 1042005429-Mar-14 14:53
Member 1042005429-Mar-14 14:53 
AnswerRe: Best way to Design of Desktop Application Pin
Peter Leow29-Mar-14 16:01
professionalPeter Leow29-Mar-14 16:01 
GeneralRe: Best way to Design a Desktop Application Pin
Member 1042005429-Mar-14 20:03
Member 1042005429-Mar-14 20:03 
GeneralRe: Best way to Design a Desktop Application Pin
Peter Leow29-Mar-14 20:34
professionalPeter Leow29-Mar-14 20:34 
AnswerRe: Best way to Design of Desktop Application Pin
Eddy Vluggen30-Mar-14 1:28
professionalEddy Vluggen30-Mar-14 1:28 
AnswerRe: Best way to Design of Desktop Application Pin
Vivi Chellappa7-Apr-14 21:08
professionalVivi Chellappa7-Apr-14 21:08 
AnswerRe: Best way to Design of Desktop Application Pin
jschell31-Mar-14 8:44
jschell31-Mar-14 8:44 
Questionweb server design Pin
Trulite23-Mar-14 21:39
Trulite23-Mar-14 21:39 
AnswerRe: web server design Pin
Richard MacCutchan23-Mar-14 23:02
mveRichard MacCutchan23-Mar-14 23:02 
AnswerRe: web server design Pin
Vivi Chellappa26-Mar-14 16:26
professionalVivi Chellappa26-Mar-14 16:26 
QuestionFeedback on my article? Pin
John D. Sanders10-Mar-14 13:17
John D. Sanders10-Mar-14 13:17 

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.