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));
 }