Example #1
0
        private void PrepareDictionary()
        {
            Dictionary = new ReflectionDictionary();
            if (Assemblies != null)
            {
                Dictionary.GetDataStoreSchema(Assemblies);
                return;
            }

            if (PersistentTypes != null)
            {
                Dictionary.GetDataStoreSchema(PersistentTypes.Where(pt =>
                                                                    pt.IsAbstract == false ||
                                                                    !MetadataService.DoesTypeImplementsAttribute(pt, typeof(NonPersistentAttribute))).ToArray());
                return;
            }

            throw new Exception(Message);
        }