예제 #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);
        }