Пример #1
0
        private void Init()
        {
            if (_Helper != null)
            {
                return;
            }

            _Helper = new DbCommandOperationHelper <TCOMMAND>(Config);
            _Helper.Initialize();
        }
Пример #2
0
        private void Init()
        {
            if (_Helper != null)
            {
                return;
            }

            Type _type = typeof(DbCommandOperationHelper <TCOMMAND>);

            _Helper = (DbCommandOperationHelper <TCOMMAND>)CommandCache.Instance.Get(_type);

            if (_Helper == null)
            {
                _Helper = new DbCommandOperationHelper <TCOMMAND>(Config);
                _Helper.Initialize();

                CommandCache.Instance.Register(_type, _Helper);
            }
        }