私は次のようなクラスの従業員を持っています:
public class Employee{
private List<Employee> subord = new List<Employee>();
private int id;
private string surname;
public virtual Employee Boss { get; set; }
public virtual List<Employee> Subbord { get; set; }
public virtual int Id
{
get { return this.id; }
set { this.id = value; }
}
public virtual string Surname
{
get { return this.surname; }
set { this.surname = value; }
}
}
1 つのテーブル Employee 内でマップしたい。すべてを構成して実行できましたが、パブリック クラス EmployeeMap : ClassMapping が正しくありません。誰かが私を助けて、コードによるマッピングを使用してここに書くことができますか?