コード例 #1
0
        private void InsertParentMenu(Role parentRole, Role currentRole, String judgePage)
        {
            PrivilegeService proxy = Common.Util.CreateProxy();

            using (proxy as IDisposable)
            {
                try
                {
                    FrameWork.Management.PublicTrans.BeginTransaction();
                    proxy.CopyParentRes(parentRole, currentRole, judgePage);
                    FrameWork.Management.PublicTrans.Commit();
                }
                catch (Exception e)
                {
                    FrameWork.Management.PublicTrans.RollBack();
                    throw e;
                }
            }
        }