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