Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Save<T>(T item)
- {
- using (ISession session = m_SessionFactory.OpenSession())
- {
- using (session.BeginTransaction())
- {
- session.SaveOrUpdate(item);
- session.Transaction.Commit();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement