Click here to Skip to main content
15,398,501 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralELF parser Pin
Ravinder Are18-Mar-08 19:54
MemberRavinder Are18-Mar-08 19:54 
GeneralDocument Archiving Pin
Brady Kelly17-Mar-08 23:34
MemberBrady Kelly17-Mar-08 23:34 
GeneralRe: Document Archiving Pin
Pete O'Hanlon18-Mar-08 1:53
mvaPete O'Hanlon18-Mar-08 1:53 
GeneralRe: Document Archiving Pin
Brady Kelly18-Mar-08 2:09
MemberBrady Kelly18-Mar-08 2:09 
GeneralRe: Document Archiving Pin
Pete O'Hanlon18-Mar-08 3:22
mvaPete O'Hanlon18-Mar-08 3:22 
GeneralRe: Document Archiving Pin
Brady Kelly18-Mar-08 5:10
MemberBrady Kelly18-Mar-08 5:10 
GeneralVisio UML - add to the built in types. Pin
DanB198317-Mar-08 12:01
MemberDanB198317-Mar-08 12:01 
GeneralWeb Service for DataBase call Pin
lokeshgupta1314-Mar-08 6:37
Memberlokeshgupta1314-Mar-08 6:37 
GeneralRe: Web Service for DataBase call Pin
Mark Churchill16-Mar-08 1:15
MemberMark Churchill16-Mar-08 1:15 
GeneralRe: Web Service for DataBase call Pin
Rob Philpott17-Mar-08 2:36
MemberRob Philpott17-Mar-08 2:36 
GeneralASP.net 3.5 and SQL Server Reporting Pin
camby7512-Mar-08 9:27
Membercamby7512-Mar-08 9:27 
GeneralRe: ASP.net 3.5 and SQL Server Reporting Pin
pmarfleet16-Mar-08 1:54
Memberpmarfleet16-Mar-08 1:54 
GeneralIntegration services Pin
sprague29511-Mar-08 11:31
Membersprague29511-Mar-08 11:31 
GeneralRe: Integration services Pin
Pete O'Hanlon11-Mar-08 11:44
mvaPete O'Hanlon11-Mar-08 11:44 
GeneralArchitecture 101.... Pin
daniel.byrne11-Mar-08 7:36
Memberdaniel.byrne11-Mar-08 7:36 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:42
Memberled mike11-Mar-08 7:42 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 7:48
Memberdaniel.byrne11-Mar-08 7:48 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 7:58
Memberled mike11-Mar-08 7:58 
GeneralRe: Architecture 101.... Pin
daniel.byrne11-Mar-08 8:06
Memberdaniel.byrne11-Mar-08 8:06 
GeneralRe: Architecture 101.... Pin
Scott Dorman11-Mar-08 8:20
professionalScott Dorman11-Mar-08 8:20 
GeneralRe: Architecture 101.... Pin
led mike11-Mar-08 8:56
Memberled mike11-Mar-08 8:56 
RantRe: Architecture 101.... Pin
jtvberg11-Apr-08 10:11
Memberjtvberg11-Apr-08 10:11 
GeneralRe: Architecture 101.... Pin
Pete O'Hanlon11-Mar-08 11:17
mvaPete O'Hanlon11-Mar-08 11:17 
GeneralClass Design Help Pin
mark_w_4-Mar-08 22:27
Membermark_w_4-Mar-08 22:27 
GeneralRe: Class Design Help Pin
Steven Campbell5-Mar-08 10:31
MemberSteven Campbell5-Mar-08 10:31 
Its hard to understand your question, because both the word "client" and "delegate" have lots of meanings. But I think I understand.

You have a master-detail (one-to-many) relationship between clients and delegates, and you want to have a client object with a property that contains a collection of delegate objects. Each delegate object will have a property reference back to a client object.

The simple solution is to use lazy-load properties. (Have the necessary properties, but only instantiate the actual objects the first time the properties are used). This prevents the "loop" scenario you mention.

If it is a small .NET app, then you could consider using Castle ActiveRecord, which will do this for you. (Or any OR-Mapper will also do it).


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.