Add initialization and reset code

This commit is contained in:
Rich
2009-03-25 15:00:02 +00:00
parent 8670872604
commit 612b043186
39 changed files with 126 additions and 2 deletions

View File

@@ -173,6 +173,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("ROFstAssociationCount", true);
if (_ROFstAssociationCount < 0)
_ROFstAssociationCount = ROFstAssociations.Count;
return _ROFstAssociationCount;
}
}
@@ -193,6 +195,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshROFstAssociations()
{
_ROFstAssociationCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_ROFstID.ToString()))
foreach (ROFstInfo tmp in _CacheByPrimaryKey[_ROFstID.ToString()])
@@ -208,6 +211,8 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("ROFstFigureCount", true);
if (_ROFstFigureCount < 0)
_ROFstFigureCount = ROFstFigures.Count;
return _ROFstFigureCount;
}
}
@@ -228,6 +233,7 @@ namespace VEPROMS.CSLA.Library
}
public void RefreshROFstFigures()
{
_ROFstFigureCount = -1;
ConvertListToDictionary();
if (_CacheByPrimaryKey.ContainsKey(_ROFstID.ToString()))
foreach (ROFstInfo tmp in _CacheByPrimaryKey[_ROFstID.ToString()])