Click here to Skip to main content
15,891,657 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:30
Quake2Player18-Jun-09 8:30 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:59
Leslie Sanford18-Jun-09 8:59 
AnswerRe: MVC Pattern question Pin
CodingYoshi7-Jul-09 17:28
CodingYoshi7-Jul-09 17:28 
GeneralRe: MVC Pattern question Pin
Quake2Player7-Jul-09 17:37
Quake2Player7-Jul-09 17:37 
QuestionClient Server Protocol Definition - Best Practices Pin
Member 404718314-Jun-09 17:16
Member 404718314-Jun-09 17:16 
AnswerRe: Client Server Protocol Definition - Best Practices Pin
Jimmanuel15-Jun-09 0:40
Jimmanuel15-Jun-09 0:40 
AnswerRe: Client Server Protocol Definition - Best Practices Pin
led mike15-Jun-09 4:28
led mike15-Jun-09 4:28 
QuestionI have a couple of design issues Pin
Mycroft Holmes13-Jun-09 15:54
professionalMycroft Holmes13-Jun-09 15:54 
In the past I have used datatables as my data "entity". So if I wanted a list of rooms for a house I have a stored proc for GetRoomsForHouse(HouseID) and this would reside in the Rooms class.

Now with List<> I am moving to lists of objects as my data "entity". My current structure (LoadObject) is up the FK path ie Fitting inherits from Room from House from Street etc. So getting a fitting (stool) will get 4 records from the database to load the ingeritance tree, this is fine and works well if there you are working with 1 stool.

Now I want all the fittings in Room101, this potentially generates 4 x #n fittings calls to the database to load the List<fittings>. This is still reasonable but when I want a list of all fittings in 60 storey tower block it gets a little overwhelming.

In the past I would simply have a proc to get all fittings by a number of different criteria and use the datatable to load the display controls. So I have a number of option to follow:

1. Continue with the proc to datatable - this precludes using a List<> to populate data list controls
2. Use the LoadObject method and wear the database calls - worst case and will not be implemented Dead | X|
3. Use a proc to get the data IE Fittings RoomName,HouseNo,StreeName etc and create a class to service a List<fittingsforxxxx> with the results from the proc.
4. Split my design of an object to display/process where display gets only the data used to load into list controls. The process object would be a full inheritance tree of a single object (Fitting).

I want to use 3 but it means there will be a plethora of classes in the app to support display. 4 may be the better option as it standatdises on the object rather than the proc.

The amount of code is not an issue as I will use my code generator to build it all.

2nd issue
When dealing with lists of objects should the list reside in the parent or the child eg:
Room has a List<fittings> and while the select for the List is on Fittings the List is on Room - Parent has the list.
Fittings has a List<fittings> for a Room and retains the List on the Fittings object - Child has the list.

Never underestimate the power of human stupidity
RAH

AnswerRe: I have a couple of design issues Pin
CodingYoshi11-Jul-09 9:24
CodingYoshi11-Jul-09 9:24 
GeneralRe: I have a couple of design issues Pin
Mycroft Holmes11-Jul-09 14:56
professionalMycroft Holmes11-Jul-09 14:56 
GeneralRe: I have a couple of design issues Pin
CodingYoshi13-Jul-09 3:35
CodingYoshi13-Jul-09 3:35 
GeneralRe: I have a couple of design issues Pin
Mycroft Holmes13-Jul-09 14:37
professionalMycroft Holmes13-Jul-09 14:37 
QuestionGod object problem Pin
Quake2Player9-Jun-09 13:50
Quake2Player9-Jun-09 13:50 
AnswerRe: God object problem Pin
Mycroft Holmes9-Jun-09 14:50
professionalMycroft Holmes9-Jun-09 14:50 
GeneralRe: God object problem Pin
Quake2Player9-Jun-09 14:58
Quake2Player9-Jun-09 14:58 
GeneralRe: God object problem Pin
Mycroft Holmes9-Jun-09 15:53
professionalMycroft Holmes9-Jun-09 15:53 
AnswerRe: God object problem Pin
CodingYoshi13-Jul-09 3:40
CodingYoshi13-Jul-09 3:40 
QuestionRS232 protocol Pin
AlecJames4-Jun-09 23:04
AlecJames4-Jun-09 23:04 
AnswerRe: RS232 protocol Pin
led mike5-Jun-09 4:21
led mike5-Jun-09 4:21 
AnswerRe: RS232 protocol Pin
Luc Pattyn9-Jun-09 5:38
sitebuilderLuc Pattyn9-Jun-09 5:38 
QuestionBest scenario Pin
mr.me30-May-09 20:15
mr.me30-May-09 20:15 
AnswerRe: Best scenario Pin
Eddy Vluggen8-Jul-09 0:27
professionalEddy Vluggen8-Jul-09 0:27 
GeneralData Entry with Linked Combos Pin
Brady Kelly30-May-09 7:15
Brady Kelly30-May-09 7:15 
GeneralRe: Data Entry with Linked Combos Pin
Jimmanuel1-Jun-09 4:53
Jimmanuel1-Jun-09 4:53 
QuestionA tagging system (like html), support on the model please Pin
Quake2Player29-May-09 16:52
Quake2Player29-May-09 16:52 

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.