Click here to Skip to main content
15,919,434 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
QuestionRe: Interfaces Pin
led mike18-Aug-08 6:30
led mike18-Aug-08 6:30 
AnswerRe: Interfaces Pin
Pete O'Hanlon18-Aug-08 8:10
mvePete O'Hanlon18-Aug-08 8:10 
AnswerRe: Interfaces Pin
Mark Churchill19-Aug-08 21:21
Mark Churchill19-Aug-08 21:21 
QuestionFind, Acquisition Knowledge From Texts, Like Terminology Extraction Software Pin
486512-Aug-08 5:13
486512-Aug-08 5:13 
QuestionAbout MVP architecture Pin
sreenivasaraok9-Aug-08 7:40
sreenivasaraok9-Aug-08 7:40 
QuestionRe: About MVP architecture Pin
led mike11-Aug-08 4:53
led mike11-Aug-08 4:53 
AnswerRe: About MVP architecture Pin
alex.barylski12-Aug-08 22:45
alex.barylski12-Aug-08 22:45 
QuestionWhat is the proper Domain Model for this relationship? Pin
Togakangaroo7-Aug-08 8:09
Togakangaroo7-Aug-08 8:09 
(Cross posted from the c# forum)
A Customer can have multiple Products and a Product can be assigned to zero to more Customers
But, there are some items (such as BasePrice and DefaultPrefix) that are implicit to a customer-product relationship.
In the database this can be modeled as
Table Customer with Columns CustomerId, Name, etc.
Table Product with Columns ProductId, Name, etc.
Table CustomerProduct with Columns CustomerId, ProductId, BasePrice, DefaultPrefix, etc.

How would you model this as Domain Objects?
All I could think of is
Customer
..CustomerId
..Name
..AssignedProduct[] Products
Product
..ProductId
..Name
..Customer[] Customers
AssignedProduct : Product
..Customer Customer
..BasePrice
..DefaultPrefix

But that doesn't strike me as too slick (an Assigned Product has a Customer and a Customers[]???) and as this simplified example gets closer to what I actually have to model, this design starts to have problems among which is that NHibernate can't model some of this stuff
GeneralMaking a menu editable. Pin
Brady Kelly7-Aug-08 4:46
Brady Kelly7-Aug-08 4:46 
GeneralRe: Making a menu editable. Pin
Pete O'Hanlon7-Aug-08 4:56
mvePete O'Hanlon7-Aug-08 4:56 
GeneralRe: Making a menu editable. Pin
Ray Cassick9-Aug-08 8:04
Ray Cassick9-Aug-08 8:04 
GeneralRe: Making a menu editable. Pin
Brady Kelly11-Aug-08 3:37
Brady Kelly11-Aug-08 3:37 
QuestionCommand pattern implementation for testing Pin
Nathan Gloyn4-Aug-08 4:43
Nathan Gloyn4-Aug-08 4:43 
AnswerRe: Command pattern implementation for testing Pin
led mike5-Aug-08 5:17
led mike5-Aug-08 5:17 
GeneralRe: Command pattern implementation for testing Pin
Nathan Gloyn5-Aug-08 6:10
Nathan Gloyn5-Aug-08 6:10 
GeneralRe: Command pattern implementation for testing Pin
led mike5-Aug-08 6:47
led mike5-Aug-08 6:47 
GeneralRe: Command pattern implementation for testing Pin
Nathan Gloyn5-Aug-08 23:58
Nathan Gloyn5-Aug-08 23:58 
GeneralRe: Command pattern implementation for testing [modified] Pin
led mike6-Aug-08 5:44
led mike6-Aug-08 5:44 
QuestionPerformance in Web applications versus Web site projects in Visual Studio Pin
heidihund1-Aug-08 1:38
heidihund1-Aug-08 1:38 
QuestionRe: Performance in Web applications versus Web site projects in Visual Studio Pin
led mike1-Aug-08 5:43
led mike1-Aug-08 5:43 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Paul Conrad1-Aug-08 8:28
professionalPaul Conrad1-Aug-08 8:28 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Paul Conrad1-Aug-08 8:29
professionalPaul Conrad1-Aug-08 8:29 
AnswerRe: Performance in Web applications versus Web site projects in Visual Studio Pin
Nicholas Butler1-Aug-08 22:34
sitebuilderNicholas Butler1-Aug-08 22:34 
Questionwant to create a cms in asp Pin
nibinki33331-Jul-08 8:04
nibinki33331-Jul-08 8:04 
QuestionRe: want to create a cms in asp Pin
led mike31-Jul-08 8:39
led mike31-Jul-08 8:39 

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.