Class BizDataManager
- Namespace
- PHCBusinessLayer
- Assembly
- PHCBusinessLayer.dll
public class BizDataManager : ContextAwareness, IPnp, ISDKContextAwareness
- Inheritance
-
BizDataManager
Constructors
BizDataManager()
BizDataManager(ContextVO)
public BizDataManager(ContextVO contextItem)
Parameters
Fields
_refreshCache
protected bool _refreshCache
Field Value
- bool
_withoutCache
protected bool _withoutCache
Field Value
- bool
lookModifyCache
protected static readonly object lookModifyCache
Field Value
- object
lookSaveCache
protected static readonly object lookSaveCache
Field Value
- object
Properties
CacheItens
public Dictionary<VOcacheManagerKey, List<GenericVO>> CacheItens { get; }
Property Value
- Dictionary<VOcacheManagerKey, List<GenericVO>>
Methods
BuildExpToCache(string, int)
protected string BuildExpToCache(string parsedExp, int maxLength)
Parameters
| Nome |
Tipo |
Descrição |
parsedExp |
string |
|
maxLength |
int |
|
Returns
- string
ClearCache()
ClearCache(GenericVO)
public void ClearCache(GenericVO itemVO)
Parameters
ClearCache(IEnumerable<GenericVO>)
public void ClearCache(IEnumerable<GenericVO> itemsVO)
Parameters
ClearCache(Type)
public void ClearCache(Type masterType)
Parameters
| Nome |
Tipo |
Descrição |
masterType |
Type |
|
ClearCache(Type, DataManagerActionTypes)
public void ClearCache(Type masterType, DataManagerActionTypes actionType)
Parameters
ClearChangeCache(Type, List<string>)
public void ClearChangeCache(Type masterType, List<string> IdStamps)
Parameters
ClearChangeState(List<VOcacheManagerKey>)
public void ClearChangeState(List<VOcacheManagerKey> removeKeys)
Parameters
ClearEntitiesInChangeSession(Type)
public void ClearEntitiesInChangeSession(Type masterTypeEntity)
Parameters
| Nome |
Tipo |
Descrição |
masterTypeEntity |
Type |
|
ClearEntityInChangeSession(Type, string)
public void ClearEntityInChangeSession(Type masterTypeEntity, string IdStamp)
Parameters
| Nome |
Tipo |
Descrição |
masterTypeEntity |
Type |
|
IdStamp |
string |
|
GetCacheChangeSessionUniqueKey(DBCmdSelect)
protected string GetCacheChangeSessionUniqueKey(DBCmdSelect cTsql)
Parameters
Returns
- string
GetCacheKey(Type, Type, DataManagerActionTypes, string)
protected VOcacheManagerKey GetCacheKey(Type masterType, Type collectionType, DataManagerActionTypes actionType, string uniqueKey)
Parameters
Returns
- VOcacheManagerKey
GetCacheUniqueKey(DBCmdSelect)
protected string GetCacheUniqueKey(DBCmdSelect cTsql)
Parameters
Returns
- string
GetCompanyUserEntitiesInChangeSession()
public Dictionary<VOcacheManagerKey, List<GenericVO>> GetCompanyUserEntitiesInChangeSession()
Returns
- Dictionary<VOcacheManagerKey, List<GenericVO>>
GetDefaultContext()
public override ContextVO GetDefaultContext()
Returns
- ContextVO
GetEntitiesInChangeSession(Type)
public List<GenericVO> GetEntitiesInChangeSession(Type masterTypeEntity)
Parameters
| Nome |
Tipo |
Descrição |
masterTypeEntity |
Type |
|
Returns
- List<GenericVO>
GetEntityInChangeSession(Type, string, bool)
public BusinessVO GetEntityInChangeSession(Type masterTypeEntity, string IdStamp, bool createNewInstance)
Parameters
| Nome |
Tipo |
Descrição |
masterTypeEntity |
Type |
|
IdStamp |
string |
|
createNewInstance |
bool |
|
Returns
- BusinessVO
GetFromCache<T>(string)
public List<T> GetFromCache<T>(string cacheKeyString) where T : GenericVO
Parameters
| Nome |
Tipo |
Descrição |
cacheKeyString |
string |
|
Returns
- List<T>
Type Parameters
T
GetQuery(FilterItem)
protected PHCCmdSql GetQuery(FilterItem filterItem)
Parameters
Returns
- PHCCmdSql
GetQuery(FilterItems)
protected PHCCmdSql GetQuery(FilterItems filterItems)
Parameters
Returns
- PHCCmdSql
OnClearCachedInstances()
This method exists only so that you can implement specific code in the derived classes, maintaining intact the DelCachedInstances() method
protected virtual void OnClearCachedInstances()
OnTryGetFromCache(object, DBCmdSelect)
public void OnTryGetFromCache(object payloadEv, DBCmdSelect sender)
Parameters
RunQuery(Type, PHCCmdSql)
protected List<GenericVO> RunQuery(Type itemType, PHCCmdSql cTsql)
Parameters
Returns
- List<GenericVO>
RunQuery(Type, PHCCmdSql, string)
protected List<GenericVO> RunQuery(Type itemType, PHCCmdSql cTsql, string cacheID)
Parameters
Returns
- List<GenericVO>
RunQuery(Type, string, string)
protected List<GenericVO> RunQuery(Type itemType, string tsql, string cacheID)
Parameters
Returns
- List<GenericVO>
RunQuery(Type, Type, PHCCmdSql)
protected List<GenericVO> RunQuery(Type masterType, Type itemType, PHCCmdSql cTsql)
Parameters
Returns
- List<GenericVO>
SaveChangeCache()
public bool SaveChangeCache()
Returns
- bool
SetEntityInChangeSession(GenericVO)
public VOcacheManagerKey SetEntityInChangeSession(GenericVO itemVO)
Parameters
Returns
- VOcacheManagerKey
SetInCache<T>(string, IEnumerable<T>)
public List<T> SetInCache<T>(string cacheKeyString, IEnumerable<T> result) where T : GenericVO
Parameters
Returns
- List<T>
Type Parameters
T