Is there a practical way to use the hierarchyID datatype in entity framework 4?
问题 As it stands now, the CLR UDTs including HierarchyID aren't supported in Entity Framework 4. HierarchyID.ToString() is useful, but breaks down once any item has 10+ siblings (the basic structure is /3/4/12/ or /3/4/2/ so the 12th node will sort before the 2nd node). A little more about potential options: Bring back hierarchyID as a varbinary and implement my own binary sorter Bring back hierarchyID as a varbinary and implement my own hierarchyID.ToString() method which pads the numbers with