public LuaDBConfigTable(ILuaSqlConfig config, string tableName, DbContext db) { config.CheckNull(nameof(config)); tableName.CheckStringIsNullOrEmpty(nameof(tableName)); db.CheckNull(nameof(db)); _config = config; DB = db; TableName = tableName; }
public LuaSqlConfigManagerBase( ISqlExecutor sqlExecutor, ISqlParamConverter sqlParamConverter, ILuaSqlPolicyManager policyExecutorMgr, IEFCoreExtendUtility util, ILuaSqlConfig config) { sqlExecutor.CheckNull(nameof(sqlExecutor)); sqlParamConverter.CheckNull(nameof(sqlParamConverter)); policyExecutorMgr.CheckNull(nameof(policyExecutorMgr)); util.CheckNull(nameof(util)); config.CheckNull(nameof(config)); _sqlParamConverter = sqlParamConverter; _policyMgr = policyExecutorMgr; _util = util; _sqlExecutor = sqlExecutor; _config = config; _config.OnModified += OnModified; _init = new InitAction(DoInit); }