NHibernate data retrieve problem
问题 These codes are working well when saving data. But it is unable to retrieve data from b_TeacherDetail -table. For example: TeacherRepository tRep = new TeacherRepository(); Teacher t = tRep.Get(12); Here, t.TeacherDetail is null . But I know that there is an entry in the b_TeacherDetail -table for teacher-id 12. Why? My tables are: Teacher {ID, Name, IsActive, DesignationID, DepartmentID} TeacherDetail {ID, TeacherID, Address, MobileNo} Teacher.cs public class Teacher { public virtual int ID