public override void Delete(string entityName, Guid id)
 {
     if (DeleteAction != null)
     {
         DeleteAction(Service, entityName, id);
     }
     else if (DeleteActions != null)
     {
         if (DeleteCache == null)
         {
             DeleteCache = Service;
             foreach (var delete in DeleteActions)
             {
                 DeleteCache = new FakeIOrganizationService(DeleteCache)
                 {
                     DeleteAction = delete
                 };
             }
         }
         DeleteCache.Delete(entityName, id);
     }
     else
     {
         if (ExecutionTracingEnabled)
         {
             Timer.Time(DeleteInternal, new Tuple <string, Guid>(entityName, id), "Delete {0}({1}): {2}", entityName, id);
         }
         else
         {
             Service.Delete(entityName, id);
         }
     }
 }
        /// <summary>
        /// 清理指定商品的关联关系
        /// </summary>
        /// <param name="productSysNo">商品系统编号</param>
        /// <remarks>2013-07-24 邵斌 创建</remarks>
        /// <remarks>2013-08-07 邵斌 添加缓存操作</remarks>
        public void Clear(int productSysNo)
        {
            string relationCode = GetRelationCode(productSysNo);

            DeleteCache.ProductInfo(productSysNo);
            if (!IPdProductAssociationDao.Instance.Clear(relationCode))
            {
                //用户操作日志
                BLL.Log.SysLog.Instance.Info(LogStatus.系统日志来源.后台, string.Format("清除商品{0}关联关系商品", productSysNo), LogStatus.系统日志目标类型.商品关联, productSysNo, AdminAuthenticationBo.Instance.Current.Base.SysNo);
            }
        }