public LuaSqlL2QueryCachePolicyExecutor(IEFQueryCache cache, IEFCoreExtendUtility util)
        {
            cache.CheckNull(nameof(cache));
            util.CheckNull(nameof(util));

            _cache = cache;
            _util  = util;
        }
Exemplo n.º 2
0
        public LuaSqlConfigManager(IEFQueryCache efcache, ISqlExecutor sqlExecutor,
                                   ISqlParamConverter sqlParamConverter, ILuaSqlPolicyManager policyExecutorMgr,
                                   IObjectReflector objReflec, IEFCoreExtendUtility util, ILuaFuncManager luafuncs, ILuaSqlConfig config)
            : base(sqlExecutor, sqlParamConverter, policyExecutorMgr, util, config)
        {
            objReflec.CheckNull(nameof(objReflec));
            efcache.CheckNull(nameof(efcache));
            luafuncs.CheckNull(nameof(luafuncs));

            _luafuncs  = luafuncs;
            _efcache   = efcache;
            _objReflec = objReflec;

            //添加默认的策略
            AddDefaultPolicies();
        }
        public SqlConfigManagerBase(ISqlConfigExecutorCreator sqlConfigExecutorCreator, IEFQueryCache efcache,
                                    ISqlParamConverter sqlParamConverter, ISqlPolicyManager policyExecutorMgr,
                                    IObjectReflector objReflec, IEFCoreExtendUtility util)
        {
            sqlConfigExecutorCreator.CheckNull(nameof(sqlConfigExecutorCreator));
            efcache.CheckNull(nameof(efcache));
            sqlParamConverter.CheckNull(nameof(sqlParamConverter));
            policyExecutorMgr.CheckNull(nameof(policyExecutorMgr));
            objReflec.CheckNull(nameof(objReflec));
            util.CheckNull(nameof(util));

            _sqlParamConverter        = sqlParamConverter;
            _efcache                  = efcache;
            _sqlConfigExecutorCreator = sqlConfigExecutorCreator;
            _policyMgr                = policyExecutorMgr;
            _objReflec                = objReflec;
            _util = util;

            _config = new SqlConfig(OnModified);
            _init   = new InitAction(DoInit);

            //添加默认的策略
            AddDefaultPolicies();
        }
Exemplo n.º 4
0
        public LuaSqlClearCachePolicyExecutor(IEFQueryCache cache)
        {
            cache.CheckNull(nameof(cache));

            _cache = cache;
        }