Add initialization and reset code
This commit is contained in:
@@ -196,6 +196,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentDetailCount", true);
|
||||
if (_ContentDetailCount < 0)
|
||||
_ContentDetailCount = ContentDetails.Count;
|
||||
return _ContentDetailCount;
|
||||
}
|
||||
}
|
||||
@@ -216,6 +218,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshContentDetails()
|
||||
{
|
||||
_ContentDetailCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ContentID.ToString()))
|
||||
foreach (ContentInfo tmp in _CacheByPrimaryKey[_ContentID.ToString()])
|
||||
@@ -260,6 +263,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentItemCount", true);
|
||||
if (_ContentItemCount < 0)
|
||||
_ContentItemCount = ContentItems.Count;
|
||||
return _ContentItemCount;
|
||||
}
|
||||
}
|
||||
@@ -280,6 +285,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshContentItems()
|
||||
{
|
||||
_ContentItemCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ContentID.ToString()))
|
||||
foreach (ContentInfo tmp in _CacheByPrimaryKey[_ContentID.ToString()])
|
||||
@@ -295,6 +301,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentPartCount", true);
|
||||
if (_ContentPartCount < 0)
|
||||
_ContentPartCount = ContentParts.Count;
|
||||
return _ContentPartCount;
|
||||
}
|
||||
}
|
||||
@@ -315,6 +323,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshContentParts()
|
||||
{
|
||||
_ContentPartCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ContentID.ToString()))
|
||||
foreach (ContentInfo tmp in _CacheByPrimaryKey[_ContentID.ToString()])
|
||||
@@ -330,6 +339,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentRoUsageCount", true);
|
||||
if (_ContentRoUsageCount < 0)
|
||||
_ContentRoUsageCount = ContentRoUsages.Count;
|
||||
return _ContentRoUsageCount;
|
||||
}
|
||||
}
|
||||
@@ -350,6 +361,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshContentRoUsages()
|
||||
{
|
||||
_ContentRoUsageCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ContentID.ToString()))
|
||||
foreach (ContentInfo tmp in _CacheByPrimaryKey[_ContentID.ToString()])
|
||||
@@ -365,6 +377,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentTransitionCount", true);
|
||||
if (_ContentTransitionCount < 0)
|
||||
_ContentTransitionCount = ContentTransitions.Count;
|
||||
return _ContentTransitionCount;
|
||||
}
|
||||
}
|
||||
@@ -385,6 +399,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshContentTransitions()
|
||||
{
|
||||
_ContentTransitionCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ContentID.ToString()))
|
||||
foreach (ContentInfo tmp in _CacheByPrimaryKey[_ContentID.ToString()])
|
||||
|
Reference in New Issue
Block a user