Add initialization and reset code
This commit is contained in:
@@ -180,6 +180,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("RODbROFstCount", true);
|
||||
if (_RODbROFstCount < 0)
|
||||
_RODbROFstCount = RODbROFsts.Count;
|
||||
return _RODbROFstCount;
|
||||
}
|
||||
}
|
||||
@@ -200,6 +202,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshRODbROFsts()
|
||||
{
|
||||
_RODbROFstCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_RODbID.ToString()))
|
||||
foreach (RODbInfo tmp in _CacheByPrimaryKey[_RODbID.ToString()])
|
||||
@@ -215,6 +218,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("RODbROImageCount", true);
|
||||
if (_RODbROImageCount < 0)
|
||||
_RODbROImageCount = RODbROImages.Count;
|
||||
return _RODbROImageCount;
|
||||
}
|
||||
}
|
||||
@@ -235,6 +240,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshRODbROImages()
|
||||
{
|
||||
_RODbROImageCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_RODbID.ToString()))
|
||||
foreach (RODbInfo tmp in _CacheByPrimaryKey[_RODbID.ToString()])
|
||||
@@ -250,6 +256,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("RODbRoUsageCount", true);
|
||||
if (_RODbRoUsageCount < 0)
|
||||
_RODbRoUsageCount = RODbRoUsages.Count;
|
||||
return _RODbRoUsageCount;
|
||||
}
|
||||
}
|
||||
@@ -270,6 +278,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshRODbRoUsages()
|
||||
{
|
||||
_RODbRoUsageCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_RODbID.ToString()))
|
||||
foreach (RODbInfo tmp in _CacheByPrimaryKey[_RODbID.ToString()])
|
||||
|
Reference in New Issue
Block a user