Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public void Save<T>(T item)
  2. {
  3. using (ISession session = m_SessionFactory.OpenSession())
  4. {
  5. using (session.BeginTransaction())
  6. {
  7. session.SaveOrUpdate(item);
  8. session.Transaction.Commit();
  9. }
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement