Add initialization and reset code
This commit is contained in:
@@ -161,6 +161,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("GroupAssignmentCount", true);
|
||||
if (_GroupAssignmentCount < 0)
|
||||
_GroupAssignmentCount = GroupAssignments.Count;
|
||||
return _GroupAssignmentCount;
|
||||
}
|
||||
}
|
||||
@@ -181,6 +183,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshGroupAssignments()
|
||||
{
|
||||
_GroupAssignmentCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_GID.ToString()))
|
||||
foreach (GroupInfo tmp in _CacheByPrimaryKey[_GID.ToString()])
|
||||
@@ -196,6 +199,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("GroupMembershipCount", true);
|
||||
if (_GroupMembershipCount < 0)
|
||||
_GroupMembershipCount = GroupMemberships.Count;
|
||||
return _GroupMembershipCount;
|
||||
}
|
||||
}
|
||||
@@ -216,6 +221,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshGroupMemberships()
|
||||
{
|
||||
_GroupMembershipCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_GID.ToString()))
|
||||
foreach (GroupInfo tmp in _CacheByPrimaryKey[_GID.ToString()])
|
||||
|
Reference in New Issue
Block a user