/// <summary>
        /// 设置用于sql执行时的策略执行器(例如:查询缓存,查询缓存清理 等等)
        /// </summary>
        public static void SetSqlExecutePolicyExecutor <T>(this ILuaSqlPolicyManager mgr,
                                                           Func <T> getExecutorFunc, int priority = 0)
            where T : ILuaSqlExecutePolicyExecutor
        {
            var policyName = EFHelper.Services.EFCoreExUtility.GetSqlConfigPolicyName(typeof(T));

            if (string.IsNullOrEmpty(policyName))
            {
                throw new ArgumentException($"Could not find {nameof(SqlConfigPolicyAttribute)} in {typeof(T).Name} type");
            }
            mgr.SetExecutor(policyName, getExecutorFunc as Func <ILuaSqlExecutePolicyExecutor>, priority);
        }
 /// <summary>
 /// 设置用于sql执行时的策略执行器(例如:查询缓存,查询缓存清理 等等)
 /// </summary>
 public static void SetSqlExecutePolicyExecutor(this ILuaSqlPolicyManager mgr, string policyName,
                                                Func <ILuaSqlExecutePolicyExecutor> getExecutorFunc, int priority = 0)
 {
     mgr.SetExecutor(policyName, getExecutorFunc, priority);
 }