Click here to Skip to main content
15,923,087 members
Home / Discussions / C#
   

C#

 
Question[datagridview] get first column value of selected row Pin
benjamin yap6-Aug-08 19:21
benjamin yap6-Aug-08 19:21 
AnswerRe: [datagridview] get first column value of selected row Pin
Judah Gabriel Himango6-Aug-08 19:55
sponsorJudah Gabriel Himango6-Aug-08 19:55 
GeneralRe: [datagridview] get first column value of selected row Pin
benjamin yap6-Aug-08 20:23
benjamin yap6-Aug-08 20:23 
AnswerRe: [datagridview] get first column value of selected row Pin
Mosd8-Aug-08 1:22
Mosd8-Aug-08 1:22 
QuestionPlz Help me Pin
kalyan6-Aug-08 19:20
kalyan6-Aug-08 19:20 
AnswerRe: Plz Help me Pin
rah_sin6-Aug-08 19:44
professionalrah_sin6-Aug-08 19:44 
GeneralRe: Plz Help me Pin
kalyan6-Aug-08 19:56
kalyan6-Aug-08 19:56 
GeneralRe: Plz Help me Pin
Ashfield6-Aug-08 20:55
Ashfield6-Aug-08 20:55 
GeneralRe: Plz Help me Pin
kalyan6-Aug-08 22:01
kalyan6-Aug-08 22:01 
Questionprocess Pin
lankaudaranga6-Aug-08 19:17
lankaudaranga6-Aug-08 19:17 
AnswerRe: process Pin
rah_sin6-Aug-08 19:43
professionalrah_sin6-Aug-08 19:43 
AnswerRe: process Pin
Judah Gabriel Himango6-Aug-08 19:51
sponsorJudah Gabriel Himango6-Aug-08 19:51 
AnswerRe: process Pin
smilethat7-Aug-08 1:36
smilethat7-Aug-08 1:36 
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 
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 

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.