Click or drag to resize

DataCache Class

The class contains cached objects for a customer database. The objects are stored in a static collection in the AppGlobal class. IMPORTANT: It is forbidden to modify the contents of a DataCache object (outside the refresh calls).
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelDataCache

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public class DataCache

The DataCache type exposes the following members.

Constructors
  NameDescription
Public methodDataCache
Top
Properties
  NameDescription
Public propertyAppStringSupport
Public propertyCollation
Collation of the database. Used when creating tempdb tables.
Public propertyConnStr
På webserver er ConnStr tom!
Public propertyCustomerId
ID of the Customer object
Public propertyCustomerName
Public propertyCustomerSettings
Public propertyDataObjectTypes
Contains all regular data object types (shadow types are not included). Tip: Use GetDataObjectType (3 overloads) to get a data object type instead of accessing the DataObjectTypes collection.
Public propertyEnableConfigurationChangeLogging
Informs whether logging of configuration changes is enabled. The information comes from the customer settings but is stored here for cheaper retrieval.
Public propertyFldMaxLenDataObjectVersionPropertyValueTextShortPropValue
Contains the length of the column PropValue in the table DataObjectVersionPropertyValueTextShort. The size is read from the INFORMATION_SCHEMA on application startup.
Public propertyLicenseWarnings
Contains detected license warnings for displaying in the portal
Public propertyProperties
Tip: Use GetProperty (3 overloads) to get a property instead of accessing the Properties collection.
Public propertyPropertyManager Obsolete.
Public propertyTimeZones
Contains all timezones in the system
Public propertyTypeManager Obsolete.
Top
Methods
  NameDescription
Public methodClearLicenseWarning
Public methodGetDataObjectType(Guid, Boolean)
Gets a data object type from the cache. Caution: The cache should be used with care as you can't rely on that it is updated. The cache should never be used in the Model layer.
Public methodGetDataObjectType(Int32, Boolean)
Gets a data object type from the cache. Caution: The cache should be used with care as you can't rely on that it is updated. The cache should never be used in the Model layer.
Public methodGetDataObjectType(String, Boolean)
Gets a data object type from the cache. Caution: The cache should be used with care as you can't rely on that it is updated. The cache should never be used in the Model layer.
Public methodGetObjectId Obsolete.
Public methodGetProperty(Guid, Boolean)
Gets a property from the cache. Caution: The cache should be used with care as you can't rely on that it is updated. The cache should never be used in the Model layer.
Public methodGetProperty(Int32, Boolean)
Public methodGetProperty(String, Boolean)
Gets a property from the cache. Caution: The cache should be used with care as you can't rely on that it is updated. The cache should never be used in the Model layer.
Public methodSetLicenseWarning
Top
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