Table of Contents

Class BizDataManager

Namespace
PHCBusinessLayer
Assembly
PHCBusinessLayer.dll
public class BizDataManager : ContextAwareness, IPnp, ISDKContextAwareness
Inheritance
BizDataManager

Constructors

BizDataManager()

public BizDataManager()

BizDataManager(ContextVO)

public BizDataManager(ContextVO contextItem)

Parameters

Nome Tipo Descrição
contextItem ContextVO

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()

public void ClearCache()

ClearCache(GenericVO)

public void ClearCache(GenericVO itemVO)

Parameters

Nome Tipo Descrição
itemVO GenericVO

ClearCache(IEnumerable<GenericVO>)

public void ClearCache(IEnumerable<GenericVO> itemsVO)

Parameters

Nome Tipo Descrição
itemsVO IEnumerable<GenericVO>

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

Nome Tipo Descrição
masterType Type
actionType DataManagerActionTypes

ClearChangeCache(Type, List<string>)

public void ClearChangeCache(Type masterType, List<string> IdStamps)

Parameters

Nome Tipo Descrição
masterType Type
IdStamps List<string>

ClearChangeState(List<VOcacheManagerKey>)

public void ClearChangeState(List<VOcacheManagerKey> removeKeys)

Parameters

Nome Tipo Descrição
removeKeys List<VOcacheManagerKey>

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

Nome Tipo Descrição
cTsql DBCmdSelect

Returns

string

GetCacheKey(Type, Type, DataManagerActionTypes, string)

protected VOcacheManagerKey GetCacheKey(Type masterType, Type collectionType, DataManagerActionTypes actionType, string uniqueKey)

Parameters

Nome Tipo Descrição
masterType Type
collectionType Type
actionType DataManagerActionTypes
uniqueKey string

Returns

VOcacheManagerKey

GetCacheUniqueKey(DBCmdSelect)

protected string GetCacheUniqueKey(DBCmdSelect cTsql)

Parameters

Nome Tipo Descrição
cTsql DBCmdSelect

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

Nome Tipo Descrição
filterItem FilterItem

Returns

PHCCmdSql

GetQuery(FilterItems)

protected PHCCmdSql GetQuery(FilterItems filterItems)

Parameters

Nome Tipo Descrição
filterItems FilterItems

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

Nome Tipo Descrição
payloadEv object
sender DBCmdSelect

RunQuery(Type, PHCCmdSql)

protected List<GenericVO> RunQuery(Type itemType, PHCCmdSql cTsql)

Parameters

Nome Tipo Descrição
itemType Type
cTsql PHCCmdSql

Returns

List<GenericVO>

RunQuery(Type, PHCCmdSql, string)

protected List<GenericVO> RunQuery(Type itemType, PHCCmdSql cTsql, string cacheID)

Parameters

Nome Tipo Descrição
itemType Type
cTsql PHCCmdSql
cacheID string

Returns

List<GenericVO>

RunQuery(Type, string, string)

protected List<GenericVO> RunQuery(Type itemType, string tsql, string cacheID)

Parameters

Nome Tipo Descrição
itemType Type
tsql string
cacheID string

Returns

List<GenericVO>

RunQuery(Type, Type, PHCCmdSql)

protected List<GenericVO> RunQuery(Type masterType, Type itemType, PHCCmdSql cTsql)

Parameters

Nome Tipo Descrição
masterType Type
itemType Type
cTsql PHCCmdSql

Returns

List<GenericVO>

SaveChangeCache()

public bool SaveChangeCache()

Returns

bool

SetEntityInChangeSession(GenericVO)

public VOcacheManagerKey SetEntityInChangeSession(GenericVO itemVO)

Parameters

Nome Tipo Descrição
itemVO GenericVO

Returns

VOcacheManagerKey

SetInCache<T>(string, IEnumerable<T>)

public List<T> SetInCache<T>(string cacheKeyString, IEnumerable<T> result) where T : GenericVO

Parameters

Nome Tipo Descrição
cacheKeyString string
result IEnumerable<T>

Returns

List<T>

Type Parameters

T