r p

r p

  • NA
  • 343
  • 0

Parent-Child relationship (HierarchyID) in Entity/Stored Pro

May 2 2013 8:17 AM

I am developing a website for an organization. In my table -"HumanResource" the names of all these people are stored as "HierarchyID" withParent Path and Path Level. I have to show  all these level as a tree model like :-

Company Directores=>General Managers=>Area Managers=>Local Managers=>Project Managers=>Members

I am using MVC3 and Entity Framework for my website. What is the best way to do it? If Entity Framework does not perform well then I can use Stored Procedure. Any idea?