This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void Instantiate(PersistenceProviderConfigSection configSection){ | |
if (Providers == null) | |
SetupProvider(configSection); | |
} | |
private static void SetupProvider(PersistenceProviderConfigSection config){ | |
if (config == null) | |
throw new Exception("PersistenceProvider are not configured to be used with this application"); | |
Providers = new PersistenceProviderCollection(); | |
ProvidersHelper.InstantiateProviders(config.Providers, Providers, typeof(PersistenceProviderBase)); | |
DefaultProvider = Providers[config.DefaultProvider] as PersistenceProviderBase; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment