コード例 #1
0
        private void _Init()
        {
            if (_isInitialized)
            {
                return;
            }

            _isInitialized = true;

            if (_initType == InitType.Eager)
            {
                List <Dictionary <string, string> > entities = _repositoryProvider.GetAllEntries();
                foreach (var item in entities)
                {
                    T entity = _entityTranslator.ParseEntity(item);
                    _entityCache.Add(entity.Id, entity);
                }
            }
        }