Update related lists when related value changes.
This commit is contained in:
@@ -176,11 +176,17 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("DocumentEntries",true);
|
||||
if (_DocumentEntryCount > 0 && _DocumentEntries == null)
|
||||
if (_DocumentEntryCount < 0 || (_DocumentEntryCount > 0 && _DocumentEntries == null))
|
||||
_DocumentEntries = EntryInfoList.GetByDocID(_DocID);
|
||||
if (_DocumentEntryCount < 0)
|
||||
_DocumentEntryCount = _DocumentEntries.Count;
|
||||
return _DocumentEntries;
|
||||
}
|
||||
}
|
||||
internal void RefreshDocumentEntries()
|
||||
{
|
||||
_DocumentEntryCount = -1; // This will cause the data to be requeried
|
||||
}
|
||||
// TODO: Replace base DocumentInfo.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
|
Reference in New Issue
Block a user