Cleanup for getting Counts of associated objects.
This commit is contained in:
@@ -556,6 +556,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
CanReadProperty("ContentRoUsageCount", true);
|
CanReadProperty("ContentRoUsageCount", true);
|
||||||
|
if (_ContentRoUsageCount < 0)
|
||||||
|
_ContentRoUsageCount = ContentRoUsages.Count;
|
||||||
return _ContentRoUsageCount;
|
return _ContentRoUsageCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -593,6 +595,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
get
|
get
|
||||||
{
|
{
|
||||||
CanReadProperty("ContentTransitionCount", true);
|
CanReadProperty("ContentTransitionCount", true);
|
||||||
|
if (_ContentTransitionCount < 0)
|
||||||
|
_ContentTransitionCount = ContentTransitions.Count;
|
||||||
return _ContentTransitionCount;
|
return _ContentTransitionCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user