Update related lists when related value changes.
This commit is contained in:
@@ -183,11 +183,17 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ConnectionFolders",true);
|
||||
if (_ConnectionFolderCount > 0 && _ConnectionFolders == null)
|
||||
if (_ConnectionFolderCount < 0 || (_ConnectionFolderCount > 0 && _ConnectionFolders == null))
|
||||
_ConnectionFolders = FolderInfoList.GetByDBID(_DBID);
|
||||
if (_ConnectionFolderCount < 0)
|
||||
_ConnectionFolderCount = _ConnectionFolders.Count;
|
||||
return _ConnectionFolders;
|
||||
}
|
||||
}
|
||||
internal void RefreshConnectionFolders()
|
||||
{
|
||||
_ConnectionFolderCount = -1; // This will cause the data to be requeried
|
||||
}
|
||||
// TODO: Replace base ConnectionInfo.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
|
Reference in New Issue
Block a user