B
Blake Weaver
Ok, I've already figured out that its not allowed to have 2 (or more)
parents to 1 child table in .NET. (unless I'm totally misinformed).
http://support.microsoft.com/default.aspx?scid=kb;en-us;325695
So, how do you get around it. Surely there are plenty of you who have run
into this. In my case I have 3 tables (more actually but 3 will suffice for
now): PurchaseOrders, Tickets, and Items. Should be a pretty classic
example.
A customer walks into the shop and places an order for various items which
come from several different vendors, therefore these items will belong to
several different PurchaseOrders. A Ticket is created for the customer,
listing all the items. Thus, a Tickets to Items relationship is implied.
However, at the end of the day (or end of the week, etc) the purchaser draws
up a series of PurchaseOrders. The PurchaseOrder will have all the items
from a particular vendor, for all the Tickets that were generated that day
(or week, etc). So, the PurchaseOrder Table needs a relationship with Items
as well. Thus, 2 parents, same child.
How does ADO.NET handle this? How do I handle this?
Thanks,
Blake
parents to 1 child table in .NET. (unless I'm totally misinformed).
http://support.microsoft.com/default.aspx?scid=kb;en-us;325695
So, how do you get around it. Surely there are plenty of you who have run
into this. In my case I have 3 tables (more actually but 3 will suffice for
now): PurchaseOrders, Tickets, and Items. Should be a pretty classic
example.
A customer walks into the shop and places an order for various items which
come from several different vendors, therefore these items will belong to
several different PurchaseOrders. A Ticket is created for the customer,
listing all the items. Thus, a Tickets to Items relationship is implied.
However, at the end of the day (or end of the week, etc) the purchaser draws
up a series of PurchaseOrders. The PurchaseOrder will have all the items
from a particular vendor, for all the Tickets that were generated that day
(or week, etc). So, the PurchaseOrder Table needs a relationship with Items
as well. Thus, 2 parents, same child.
How does ADO.NET handle this? How do I handle this?
Thanks,
Blake