Пример #1
0
        public void Delete(TEntity obj)
        {
            var s = NHibernateHelper.GetCurrentSession();

            s.Delete(obj);
        }
Пример #2
0
 public void Dispose()
 {
     // unbind the context
     // see: NHibernateHelper.cs
     NHibernateHelper.DisposeCurrentSession();
 }
Пример #3
0
        public void SaveOrUpdate(TEntity obj)
        {
            var s = NHibernateHelper.GetCurrentSession();

            s.SaveOrUpdate(obj);
        }