public void ConcreteTableTestHqlSearchSubClassByRootClassRepository() { var cri = NewSession.CreateQuery("from Person where type='Student'"); var ems = cri.List <Student>(); foreach (var employee in ems) { Debug.WriteLine(employee); } }
public void ClassTableTestHqlSearchSubClassByRootClassRepository() { var cri = NewSession.CreateQuery("from Classroom'"); var ems = cri.List <Classroom>(); foreach (var employee in ems) { Debug.WriteLine(employee); } }
public void SingleTableTestHqlSearchSubClassByRootClassRepository() { var cri = NewSession.CreateQuery("from Employee where Type='Teacher'"); var ems = cri.List <Employee>(); foreach (var employee in ems) { Debug.WriteLine(employee); } }