Hierarchyid data type and Code First

.net, c#, ef-code-first, entity-framework

Solution

This is a possible duplicate of HierarchyID in Entity Framework not working

EF does not support that data type http://thedatafarm.com/blog/data-access/sql-server-2008-data-types-and-entity-framework-4/

Problem

What I need to do, I have a comment table using the HierarchyID data type in sql server, and would like that mapped over to a Code First/EF 4.3 class. How can I achieve this? Also how do I interact with the hierarchyID when inserting/deleting. Thank you very much.

Original source

Related problems