Yo, DB folk
We've got an arbitrary hierarchical tree that's stored in a DB in the standard way -- every row has a column pointing to the ID of the parent row. SQL Server 2008 has this new-fangled HierarchyId data type that's not only supposed to glue the tree together, but provide other bits of useful tree functions (insert, delete, etc.). We're deciding whether to keep the old way or go the new way.
Diogenes of Sinope: "It is not that I am mad, it is only that my head is different from yours."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."
-
DoctorChaos
- Posts: 1579
- Joined: Fri Oct 08, 2004 7:58 pm
I spoke a bit too soon. I figured out a way to make EF take the data without problems. The operations are another story...
EF sees the corresponding C# type as untrusted & refuses to run any methods associated with it. It's not that hard to simulate that functionality yourself, though, if you really want to. If you search and return entire subtrees or need to fuck with your tree structurally, it's still the way to go.
EF sees the corresponding C# type as untrusted & refuses to run any methods associated with it. It's not that hard to simulate that functionality yourself, though, if you really want to. If you search and return entire subtrees or need to fuck with your tree structurally, it's still the way to go.
Diogenes of Sinope: "It is not that I am mad, it is only that my head is different from yours."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."
Arnold Judas Rimmer, BSC, SSC: "Better dead than smeg."