Exemple #1
0
 public IList <Fornecedor> Lista()
 {
     using (var session = NHibernateHelper.OpenSession())
         return(session.QueryOver <Fornecedor>()
                .List());
 }
Exemple #2
0
 public IList <Categoria> Lista()
 {
     using (var session = NHibernateHelper.OpenSession())
         return(session.QueryOver <Categoria>()
                .List());
 }