Hi, I can't seem to find a suitable best practice to configure the following (fictious) situation::
- suppose table [Product] which has a PK composed of two fields: "Category" and "SupplierID" - suppose table [OrderLine] which has a PK composed of three fields: the two fields from [Product] (being "Category" and "SupplierID") and an additional "OrderLineNumber". In the mapping for [Product], I put: CompositeId().KeyProperty(x => x.Category, "Category").KeyProperty(x => x.SupplierID, "SupplierID"); In the mapping for [OrderLine], what do I do? I tried something like: CompositeId().KeyProperty(x => x.OrderLineNumber, "OrderLineNumber").KeyReference(x => x.Product ....... but then I got stuck, as there is no way (that I know of) to tell the KeyReference() method that it should consider "Category" and "SupplierID" when pinpointing the Product. Thx for any answer, -- You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
