A wrapper implementation for IDbProvider such that multiple DbProvider instances can be selected at runtime, say based on web request criteria.
For a list of all members of this type, see MultiDelegatingDbProvider Members .
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The name of which DbProvider to use, as provided to the IDictionary property TargetDbProviders is "dbProviderName". Once the target dbprovider name is known, set the name via a call to
LogicalThreadContext.SetData(MultiDelegatingDbProvider.CURRENT_DBPROVIDER_SLOTNAME, "database1ProviderName"). The value "database1ProviderName" must match a key in the provided TargetDbProviders dictionary.
Assembly: Spring.Data (in Spring.Data.dll)