Click here to Skip to main content
15,913,854 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Windows App and Web App. Where can the two meet. Pin
led mike9-May-07 5:04
led mike9-May-07 5:04 
QuestionAsp.Net Database Usage vs Windows Application Database Usage [modified] Pin
Tristan Rhodes8-May-07 5:13
Tristan Rhodes8-May-07 5:13 
AnswerRe: Asp.Net Database Usage vs Windows Application Database Usage Pin
led mike9-May-07 4:44
led mike9-May-07 4:44 
GeneralRe: Asp.Net Database Usage vs Windows Application Database Usage Pin
Tristan Rhodes9-May-07 6:24
Tristan Rhodes9-May-07 6:24 
QuestionPlugIns - Preventing Malicious Code... Pin
Shy Agam6-May-07 1:47
Shy Agam6-May-07 1:47 
AnswerRe: PlugIns - Preventing Malicious Code... Pin
Moak16-May-07 6:55
Moak16-May-07 6:55 
Questionlibrary managment object model Pin
kaptaintens5-May-07 17:52
kaptaintens5-May-07 17:52 
GeneralRe: library managment object model Pin
kaptaintens5-May-07 19:16
kaptaintens5-May-07 19:16 
You've raised some very interesting points, thank you. Smile | :) I have been thinking about this and as you say the Member and Book objects should not really need to be dependant upon the Loan object. I have now revised my object model:

Member - contains information about the member and a unique identifier.
Book - contains info about the book such as Title, ISBN, Author and a unique identifier.
Loan - a relationship between a Member and a Book with due date, issue date, etc.

To me it seems logical to use three seperate files. Why should the Members file have anything to do with the Book file, since they have no direct relationship without a Loan connecting them. Also I am considering using Serialization which would mean rewriting the whole file each time I save it - causing unnecessary overhead if I have to rewrite the usually static Members and Books.

Even with my new object model my original problem is not solved. If I am saving the Loans to a seperate file I will have to use the unique identifiers of the Books and Members to reference them. When I want to load the Loan objects again what would be the best way to go about this? Should I load the loan details and then loop through the Members and Books (which would be loaded first), until I find the correct object to reference for the Loan, and THEN create a real Loan object?

Thanks for your suggestions Smile | :)
Daniel
GeneralRe: library managment object model Pin
kaptaintens5-May-07 20:07
kaptaintens5-May-07 20:07 
GeneralRe: library managment object model Pin
Tristan Rhodes9-May-07 4:41
Tristan Rhodes9-May-07 4:41 
QuestionInherit without exposing? Pin
francoisdotnet4-May-07 4:47
francoisdotnet4-May-07 4:47 
AnswerRe: Inherit without exposing? Pin
CPallini4-May-07 5:07
mveCPallini4-May-07 5:07 
GeneralRe: Inherit without exposing? Pin
francoisdotnet4-May-07 5:22
francoisdotnet4-May-07 5:22 
GeneralRe: Inherit without exposing? Pin
CPallini4-May-07 5:33
mveCPallini4-May-07 5:33 
AnswerRe: Inherit without exposing? Pin
led mike4-May-07 17:08
led mike4-May-07 17:08 
GeneralRe: Inherit without exposing? Pin
Stephen Hewitt6-May-07 16:00
Stephen Hewitt6-May-07 16:00 
GeneralRe: Inherit without exposing? Pin
led mike6-May-07 16:30
led mike6-May-07 16:30 
GeneralRe: Inherit without exposing? Pin
Stephen Hewitt6-May-07 16:40
Stephen Hewitt6-May-07 16:40 
GeneralRe: Inherit without exposing? Pin
led mike6-May-07 17:01
led mike6-May-07 17:01 
Questiondecoupling business and database? Pin
giddy_guitarist28-Apr-07 12:11
giddy_guitarist28-Apr-07 12:11 
AnswerRe: decoupling business and database? Pin
Eugene Ciloci28-Apr-07 16:36
Eugene Ciloci28-Apr-07 16:36 
GeneralRe: decoupling business and database? Pin
giddy_guitarist29-Apr-07 13:01
giddy_guitarist29-Apr-07 13:01 
AnswerRe: decoupling business and database? Pin
Chris-Kaiser3-May-07 13:39
Chris-Kaiser3-May-07 13:39 
QuestionStructured error handling practises in asp.net Pin
shaunll27-Apr-07 4:36
shaunll27-Apr-07 4:36 
AnswerRe: Structured error handling practises in asp.net Pin
Eugene Ciloci28-Apr-07 17:03
Eugene Ciloci28-Apr-07 17:03 

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.