Click or drag to resize

IgnoreCacheContext Class

IgnoreCacheContext can be used to force controller methods to disregard cached data. Specifically, the ControllerBase.GetFromCacheIfPresent() method will ignore cached data. IgnoreCacheContext is mainly used in unit tests to avoid caching problems caused by transaction rollbacks.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelContextBaseIgnoreCacheState
    Omada.OE.AppLogicIgnoreCacheContext

Namespace:  Omada.OE.AppLogic
Assembly:  Omada.OE.AppLogic (in Omada.OE.AppLogic.dll) Version: 15.0.0.0
Syntax
C#
public class IgnoreCacheContext : ContextBase<IgnoreCacheState>, 
	IDisposable

The IgnoreCacheContext type exposes the following members.

Methods
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also