我有一个班级员工,例如:
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; }
}
}
我想在一张员工表中进行映射。我可以配置和运行一切,但我的公共类 EmployeeMap : ClassMapping 不正确。任何人都可以帮助我并使用代码映射在此处编写它吗?