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));
 }
Esempio n. 3
0
 public List <Profile> GetAll()
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Query <Profile>().ToList <Profile>());
 }
Esempio n. 4
0
 public Profile Get(int id)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Get <Profile>(id));
 }
Esempio n. 5
0
 public List <Settings> GetAll()
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Query <Settings>().ToList <Settings>());
 }
Esempio n. 6
0
 public Settings Get(int id)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         return(session.Get <Settings>(id));
 }