以下のようなテーブル定義があります。
enter code here
CREATE TABLE Milestone
(
MilestoneID Int,
MilestoneName Nvarchar(256),
ParentMilestoneID Int
)
以下のようにクラス定義:
enter code here
public class Milestone
{
public int MilestoneID {get;set;}
public string MilestoneName {get;set:}
public Milestone milestone {get;set;}
}
SQLクエリを親子階層オブジェクトにマッピングする方法は?
提案やアイデアは大歓迎です。