Esempio n. 1
0
        public static void Init()
        {
            string dataAccessProviderName = DataProviderName;

            ProviderManager.Set <IDataProvider>(
                (IDataProvider)Activator.CreateInstance(Type.GetType(dataAccessProviderName))
                );

            //一次性读取并缓存系统设置
            SettingManager.CacheAllSettings();
        }