예제 #1
0
        public void BeginTransaction()
        {
            string Function_Name = "BeginTransaction";

            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Entered");
            DatabaseSession session = m_sessionFactory.GetDatabaseSession();

            try
            {
                if (session != null)
                {
                    session.OpenConnection();
                    session.BeginTransaction();
                }
            }
            catch (Exception localException)
            {
                LogHelper.Error(CLASS_NAME, Function_Name, localException.ToString());
                throw localException;
            }
            LogHelper.Trace(CLASS_NAME, Function_Name, "Function_Exited");
        }