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