/// <summary>
 /// Registers a DataProvider extension instance.
 /// </summary>
 /// <param name="providerType">The type that describes and identifies the extension instance.</param>
 /// <param name="provider">The provider instance that will be used in the whole appdomain's lifecycle.</param>
 public virtual void SetExtension(Type providerType, IDataProviderExtension provider)
 {
     _dataProvidersByType[providerType] = provider;
     provider.MainProvider = this;
 }
Exemple #2
0
 public void SetDataProviderExtension(Type providerType, IDataProviderExtension provider)
 {
     DataProvider.SetExtension(providerType, provider);
 }