B2013-153 fixed: fix getting Count of associated objects.
Cleanup for getting Counts of associated objects.
This commit is contained in:
parent
5d5533b232
commit
5a81462bf7
@ -254,6 +254,11 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentEntryCount", true);
|
||||
if (_ContentEntryCount < 0)
|
||||
{
|
||||
_MyEntry = EntryInfo.Get(_ContentID);
|
||||
_ContentEntryCount = MyEntry == null ? 0 : 1;
|
||||
}
|
||||
return _ContentEntryCount;
|
||||
}
|
||||
}
|
||||
|
@ -348,6 +348,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("DocumentEntryCount", true);
|
||||
if (_DocumentEntryCount < 0)
|
||||
_DocumentEntryCount = DocumentEntries.Count;
|
||||
return _DocumentEntryCount;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user