Click here to Skip to main content
15,906,081 members
Home / Discussions / C#
   

C#

 
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 
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 
The short answer is no, multiple Customers can have instances of the same product (though in this case, different AssignedProduct) so it should be possible to navigate from Product to all Customers that are assigned it. Also, I've tried that set-up already and it has some more esoteric disadvantages.

The long answer is that this is a simplification of slightly more complicated schema. Basically, imagine the relations between Location, Customer, Product, and Container for a company which has multiple Locations at which it rents out Containers for Customers to store Product in. A Customer can exist at multiple Locations and a Location can have multiple customers (again, the existance of a relation entails additional data); a Customer can have mutliple Products and a Product can be assigned to multiple Customers - which have to be at a location to have a product assigned. Finally, each Product that is assigned to a customer can be stored in zero or more Containers.
The database in the meantime is not completely normalized, and since it is legacy, I cannot change it. It looks something like this:
Location
Customer
Product
Container
CustomerLocation with fk to Location, Customer
ProductCustomer with fk to Product, CustomerLocation
ContainerProduct with fk to Container, ProductCustomer


So, in addition to the set-up I postulated being a little awkward, it is actually currently impossible for me to map with NHibernate.
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 
GeneralRe: WebApp or WinApp? Pin
Manas Bhardwaj7-Aug-08 7:43
professionalManas Bhardwaj7-Aug-08 7:43 
GeneralRe: WebApp or WinApp? Pin
k6667-Aug-08 7:49
k6667-Aug-08 7:49 

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.