Exemplo n.º 1
0
 public void Add(Cidade item)
 {
     using (ISession session = NHibernateHelper.OpenSession())
         using (ITransaction transaction = session.BeginTransaction())
         {
             item.AddBySession(session);
             transaction.Commit();
         }
 }