Hi,
I've got a table that stores inventory for a store that looks like this
InventoryId int
ParentId int
ShortDesc int
...
[other product data]
...
A TShirt will exist in the table with a ParentId of -1. Any variations of size and colour will exist in the same table with the original parent InventoryID in the ParentID field.
EG
InventoryID |ParentID |ShortDesc
----------------------------------------------------
111 -1 Skull TShirt
112 111 Skull TShirt Black Small
113 111 Skull TShirt Black Medium
114 111 Skull TShirt Black Large
115 111 Skull TShirt White Small
Is it at all possible that I could specify some kind of foreign key or association where when I use this DB with the Entity Framework I can have a Navigation property on this Entity that will list all of an Inventory Entity's child Inventory?