Click here to Skip to main content
15,887,945 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Csv File Compare Pin
Brady Kelly3-Nov-07 15:39
Brady Kelly3-Nov-07 15:39 
GeneralRe: Csv File Compare Pin
egottwald6-Nov-07 2:52
egottwald6-Nov-07 2:52 
GeneralRe: Csv File Compare Pin
Brady Kelly6-Nov-07 3:13
Brady Kelly6-Nov-07 3:13 
QuestionComposed Business Objects Pin
Pawel Krakowiak29-Oct-07 4:32
Pawel Krakowiak29-Oct-07 4:32 
AnswerRe: Composed Business Objects Pin
led mike29-Oct-07 5:15
led mike29-Oct-07 5:15 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak29-Oct-07 5:22
Pawel Krakowiak29-Oct-07 5:22 
GeneralRe: Composed Business Objects Pin
led mike29-Oct-07 6:15
led mike29-Oct-07 6:15 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak29-Oct-07 6:36
Pawel Krakowiak29-Oct-07 6:36 
led mike wrote:
If the user interacts with it, it is a presentation object.


Class user, not application user. I guess I can't express my problem better. Frown | :(

How it works in code is like this:

WidgetsBLL widgetsLogic = new WidgetsBLL();
Widget widget = widgetsLogic.GetWidgetById(13);

Now you can access various fields of the widget:
widget.WidgetId
widget.FriendlyName

And so on. You also have a User class, which has properties such as FirstName, LastName, etc.

I need to present combined data, so in one row we have WidgetId but also user's FirstName - as you can see this data belongs to two different classes. I am not sure whether to design a third class and include both Widget and User by composition or to do something else. That is my problem I tried to describe.

Kind regards,
Pawel Krakowiak

GeneralRe: Composed Business Objects Pin
led mike29-Oct-07 7:58
led mike29-Oct-07 7:58 
AnswerRe: Composed Business Objects Pin
Mark Churchill30-Oct-07 19:00
Mark Churchill30-Oct-07 19:00 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak30-Oct-07 22:11
Pawel Krakowiak30-Oct-07 22:11 
GeneralRe: Composed Business Objects Pin
led mike31-Oct-07 4:56
led mike31-Oct-07 4:56 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak31-Oct-07 5:08
Pawel Krakowiak31-Oct-07 5:08 
GeneralRe: Composed Business Objects Pin
led mike31-Oct-07 5:36
led mike31-Oct-07 5:36 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak31-Oct-07 7:54
Pawel Krakowiak31-Oct-07 7:54 
GeneralRe: Composed Business Objects Pin
Mark Churchill31-Oct-07 18:09
Mark Churchill31-Oct-07 18:09 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak1-Nov-07 4:16
Pawel Krakowiak1-Nov-07 4:16 
GeneralRe: Composed Business Objects Pin
Mark Churchill1-Nov-07 16:20
Mark Churchill1-Nov-07 16:20 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak1-Nov-07 23:41
Pawel Krakowiak1-Nov-07 23:41 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 1:50
Mark Churchill2-Nov-07 1:50 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak2-Nov-07 2:01
Pawel Krakowiak2-Nov-07 2:01 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 2:57
Mark Churchill2-Nov-07 2:57 
GeneralRe: Composed Business Objects Pin
martin_hughes2-Nov-07 7:44
martin_hughes2-Nov-07 7:44 
GeneralRe: Composed Business Objects Pin
Mark Churchill2-Nov-07 16:39
Mark Churchill2-Nov-07 16:39 
GeneralRe: Composed Business Objects Pin
Pawel Krakowiak2-Nov-07 10:55
Pawel Krakowiak2-Nov-07 10:55 

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.