Click here to Skip to main content
15,888,111 members
Home / Discussions / C#
   

C#

 
Questioncontent type of Http Pin
George_George6-Aug-08 18:52
George_George6-Aug-08 18:52 
AnswerRe: content type of Http Pin
leppie7-Aug-08 3:11
leppie7-Aug-08 3:11 
GeneralRe: content type of Http Pin
George_George8-Aug-08 23:54
George_George8-Aug-08 23:54 
Questionsql Pin
lankaudaranga6-Aug-08 18:01
lankaudaranga6-Aug-08 18:01 
AnswerRe: sql Pin
Judah Gabriel Himango6-Aug-08 19:52
sponsorJudah Gabriel Himango6-Aug-08 19:52 
QuestionC# random Images Pin
shadowhazard6-Aug-08 15:51
shadowhazard6-Aug-08 15:51 
AnswerRe: C# random Images Pin
Abhijit Jana6-Aug-08 17:53
professionalAbhijit Jana6-Aug-08 17:53 
QuestionWhat is the proper Domain Model for this relationship? Pin
Togakangaroo6-Aug-08 15:37
Togakangaroo6-Aug-08 15:37 
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
AnswerRe: What is the proper Domain Model for this relationship? Pin
Kjetil Svendsen6-Aug-08 22:36
Kjetil Svendsen6-Aug-08 22:36 
GeneralRe: What is the proper Domain Model for this relationship? Pin
Togakangaroo7-Aug-08 2:31
Togakangaroo7-Aug-08 2:31 
Question[Message Deleted] Pin
csharp-job6-Aug-08 14:48
csharp-job6-Aug-08 14:48 
AnswerRe: Any good C# programmers around Norwalk, CT - Full time position Pin
Mogaambo7-Aug-08 0:07
Mogaambo7-Aug-08 0:07 
AnswerRe: Any good C# programmers around Norwalk, CT - Full time position Pin
Thomas Stockwell7-Aug-08 1:33
professionalThomas Stockwell7-Aug-08 1:33 
QuestionCrystal Reports - easy advice needed Pin
nelsonpaixao6-Aug-08 14:30
nelsonpaixao6-Aug-08 14:30 
QuestionInline MSIL in C#? Pin
dybs6-Aug-08 12:40
dybs6-Aug-08 12:40 
AnswerRe: Inline MSIL in C#? Pin
Guffa6-Aug-08 14:48
Guffa6-Aug-08 14:48 
GeneralRe: Inline MSIL in C#? Pin
dybs6-Aug-08 15:44
dybs6-Aug-08 15:44 
GeneralRe: Inline MSIL in C#? Pin
Mark Churchill6-Aug-08 21:33
Mark Churchill6-Aug-08 21:33 
GeneralRe: Inline MSIL in C#? Pin
leppie7-Aug-08 3:13
leppie7-Aug-08 3:13 
GeneralRe: Inline MSIL in C#? Pin
dybs7-Aug-08 6:53
dybs7-Aug-08 6:53 
QuestionWebApp or WinApp? Pin
k6666-Aug-08 10:42
k6666-Aug-08 10:42 
AnswerRe: WebApp or WinApp? Pin
Ravi Bhavnani6-Aug-08 12:14
professionalRavi Bhavnani6-Aug-08 12:14 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 3:28
k6667-Aug-08 3:28 
AnswerRe: WebApp or WinApp? Pin
Manas Bhardwaj7-Aug-08 5:19
professionalManas Bhardwaj7-Aug-08 5:19 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 6:06
k6667-Aug-08 6:06 

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.