Class VOcacheManagerKey
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
public class VOcacheManagerKey
- Inheritance
-
VOcacheManagerKey
Fields
CacheSeparator
public const string CacheSeparator = "_"
Field Value
CacheShare
public const string CacheShare = "Share"
Field Value
UniqueIdEmpty
public const string UniqueIdEmpty = "EmptyUniqueID"
Field Value
Properties
ActionType
public DataManagerActionTypes ActionType { get; set; }
Property Value
CollectionType
public string CollectionType { get; set; }
Property Value
Company
public string Company { get; set; }
Property Value
MasterType
public string MasterType { get; set; }
Property Value
TokenID
Identifying value of record status that has been cached
public string TokenID { get; set; }
Property Value
Examples
If(actionType = DataManagerActionTypes.ChangeMode, appManagement.UserInfo.userName , "Share")
Remarks
the value of this property depends on the status of the entity stored in the cache, if the status is consulted it is set to 'Share' so that the same record can be shared by several users, if it is in modification mode, it remains with unique credentials of the user who is creating or changing the record.
The exception is when the controller of the triggers uses this class to store its data, in this situation this property stores the value of appManagement.ThreadID
UniqueKey
Identifying value of record status that has been cached
public string UniqueKey { get; set; }
Property Value
Remarks
The value of this property is the filter expression of the Tsql made to the database to return the record, when it represents a record in change, the filter is simplified becoming the same as the name of the field containing the stamp and the stamp value of that same record
The exception is when the controller of the triggers uses this class to store its data, in this situation this property stores the value of uniqueID from the entity xxStamp
Methods
Clone()
public VOcacheManagerKey Clone()
Returns
GetFromActionType(DataManagerActionTypes)
public VOcacheManagerKey GetFromActionType(DataManagerActionTypes acType)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
acType |
DataManagerActionTypes |
Returns
ToString()
public string ToString()