Click here to Skip to main content
15,885,757 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Stored Procedures Pin
Mycroft Holmes11-Jul-09 15:29
professionalMycroft Holmes11-Jul-09 15:29 
AnswerRe: Stored Procedures Pin
CodingYoshi13-Jul-09 17:05
CodingYoshi13-Jul-09 17:05 
QuestionORM tools in domain driven design? Pin
midix28-Jun-09 8:28
midix28-Jun-09 8:28 
AnswerRe: ORM tools in domain driven design? Pin
Eddy Vluggen7-Jul-09 9:15
professionalEddy Vluggen7-Jul-09 9:15 
QuestionFirst attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 3:07
Mark McArthey18-Jun-09 3:07 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
Mark McArthey18-Jun-09 6:01
Mark McArthey18-Jun-09 6:01 
GeneralRe: First attempt at OOD: How do I extend my design? Pin
led mike22-Jun-09 6:41
led mike22-Jun-09 6:41 
AnswerRe: First attempt at OOD: How do I extend my design? Pin
CodingYoshi18-Jul-09 21:18
CodingYoshi18-Jul-09 21:18 
If you have your employee class built then you can do the following:

public EmployeeCollection
{

// You can use any collection but dictionary will help you spot them easier through their id
private Dictionary<string, Employee> _employees;

public EmployeeCollection()
{
this._employees = new Dictionary<string, Employee>();
}

public void Load()
{
// Ask the DAL class to get all the employees
EmployeeCollectionMgr manager = new EmployeeCollection();
this._employees = manager.Retrieve();
// The manager can either grab the records from the database and create employee objects, add
// to the collection and return the collection OR
// the manager can grab all the employee ids from the database and then create an employee object and
// ask the employee object to load itself.
// In the first approach you need one trip to the database but you will do some of Employee's work
// In the second approach you will need 1 trip per employee to the database and one to get all the ids
// but Employee will do all the work

// You can have many other methods here depending on the domain model at hand.
}
}

CodingYoshi

Artificial Intelligence is no match for Human Stupidity.

QuestionMVC Pattern question Pin
Quake2Player16-Jun-09 7:43
Quake2Player16-Jun-09 7:43 
AnswerRe: MVC Pattern question Pin
led mike16-Jun-09 11:48
led mike16-Jun-09 11:48 
GeneralRe: MVC Pattern question Pin
Quake2Player16-Jun-09 12:16
Quake2Player16-Jun-09 12:16 
GeneralRe: MVC Pattern question Pin
led mike17-Jun-09 4:50
led mike17-Jun-09 4:50 
AnswerRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 7:50
Leslie Sanford18-Jun-09 7:50 
GeneralRe: MVC Pattern question Pin
Quake2Player18-Jun-09 8:17
Quake2Player18-Jun-09 8:17 
GeneralRe: MVC Pattern question Pin
Leslie Sanford18-Jun-09 8:21
Leslie Sanford18-Jun-09 8:21 
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 
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 

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.