Example #1
0
        public virtual async Task InitAsync()
        {
            if (PersistenceRepository != null)
            {
                await PersistenceRepository.InitAsync();

                foreach (T entity in await PersistenceRepository.GetAllAsync())
                {
                    Entities[entity.Id] = entity;
                }
            }
        }