Click or drag to resize

CacheControllerRegisterCache Method

Registers the cache specified under the connection string specified.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static void RegisterCache(
	string connectionString,
	IResultsetCache toRegister
)

Parameters

connectionString
Type: SystemString
The connection string to register the cache under. Can be empty string, which will mean the cache is used for all connections. If such a cache is registered, adding another cache will result in an exception. If null, the empty string is assumed
toRegister
Type: SD.LLBLGen.Pro.ORMSupportClassesIResultsetCache
The cache to register.
Exceptions
ExceptionCondition
ArgumentNullExceptiontoRegister
InvalidOperationExceptionYou can't register a cache under a non-empty connection string as a cache for the empty string has already been registered
See Also