强制清除基础属性缓存

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

强制清除基础属性缓存

       #region 强制清除基础属性缓存

        /// <summary>

        /// 强制清除缓存

        /// </summary>

        /// <param name="id">基础属性的ID</param>

        public static void RemoveCache(string billId, string id, Context Context)

        {

            IMetaDataService metaService = ServiceHelper.GetService<IMetaDataService>();

            FormMetadata meta = metaService.Load(Context, billId) as FormMetadata; //加载基础属性的元数据

            DataEntityCacheManager cacheManager = new DataEntityCacheManager(Context, meta.BusinessInfo.GetDynamicObjectType());

            cacheManager.RemoveCacheByPrimaryKey(id);

        }

        #endregion

    }



老师,可以直接改成python不 方便用些

强制清除基础属性缓存

#region 强制清除基础属性缓存 /// <summary> /// 强制清除缓存 /// </summary> ...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息