Hi,
I'm new to NHiberate and wondering what's the best way to model a typical many-to-many transaction relationship using NHiberate.
The scenario is like an Order, Product and OrderDetails tables. The trouble is that there is no surrogate key on the OrderDetails table. The schma for the three tables look like belows:
Order: OrderID, OrderDate, Client...
Product: ProductID, Name, Desc...
OrderDetails: OrderID, ProductID, Quantity, Discount...
The OrderDetails table has the OrderID and ProductID as composite key.
Can somebody shed some light on this?
Many thanks
|