public List <Application> GetAll()
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Query <Application>().ToList <Application>());
 }
 public Application Get(int id)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Get <Application>(id));
 }
示例#3
0
 public List <Profile> GetAll()
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Query <Profile>().ToList <Profile>());
 }
示例#4
0
 public Profile Get(int id)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Get <Profile>(id));
 }
示例#5
0
 public List <Settings> GetAll()
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Query <Settings>().ToList <Settings>());
 }
示例#6
0
 public Settings Get(int id)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Get <Settings>(id));
 }