I have a table defination as below:
enter code here
CREATE TABLE Milestone
(
MilestoneID Int,
MilestoneName Nvarchar(256),
ParentMilestoneID Int
)
Class defination as below:
enter code here
public class Milestone
{
public int MilestoneID {get;set;}
public string MilestoneName {get;set:}
public Milestone milestone {get;set;}
}
How to mapping sql query to parent-child hierarchy objects?
Any suggestion or idea is welcome.