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