0
我有一個類員工水木清華這樣的:通過代碼問題NHibernate的映射
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; }
}
}
我想一個Employee表中的映射。我可以配置和運行一切,但是我的公共類EmployeeMap:ClassMapping不正確。任何人都可以幫助我,並使用代碼映射在這裏寫它?
你使用的是FluentNHibernate,你試過了什麼? – hcb 2013-05-07 13:51:32
你可以發佈你迄今爲止創建的映射代碼嗎? – gwin003 2013-05-07 13:53:04
請看看,我打印不工作的嘗試 – 2013-05-13 04:42:26