Click or drag to resize
AbstractInfoProviderTInfo, TProvider, TQueryProviderObject Property

Gets or sets the provider instance.

Since the providers are managed by IoC container, setting the provider instance must be performed before the IoC container initialization finishes (i.e. during application pre-initialization).

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 13.0.131
Syntax
C#
public static TProvider ProviderObject { get; set; }

Property Value

Type: TProvider
Remarks
In unit testing scenarios where IoC container is not available the Fake<TInfo, TProvider>(new TestingProvider()); method must be used to set the provider instance.
See Also