Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

MultiDelegatingDbProvider Class

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 .

System.Object
   MultiDelegatingDbProvider

[Visual Basic]
Public Class MultiDelegatingDbProvider
    Implements IDbProvider, IInitializingObject
[C#]
public class MultiDelegatingDbProvider : IDbProvider, IInitializingObject

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

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.

Requirements

Namespace: Spring.Data

Assembly: Spring.Data (in Spring.Data.dll)

See Also

MultiDelegatingDbProvider Members | Spring.Data Namespace