Entity Framework Core hierarchyid
问题 I'm trying to use EF Core but I need to use the sql server datatype hierarchyid on one of my tables. Is it possible to designate a field in my c# class to be of type hierarchyid? Could I manually column EF creates to be type hierarchyid without breaking EF? Edit: I have tried to do this: public class Entity { public int Id { get; set; } public string Name { get; set; } public SqlHierarchyId HierarchyId { get; set; } } As it's suggested that this is supported by EF core 2.1, however when i run