Add initialization and reset code
This commit is contained in:
@@ -241,6 +241,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("UserMembershipCount", true);
|
||||
if (_UserMembershipCount < 0)
|
||||
_UserMembershipCount = UserMemberships.Count;
|
||||
return _UserMembershipCount;
|
||||
}
|
||||
}
|
||||
@@ -261,6 +263,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshUserMemberships()
|
||||
{
|
||||
_UserMembershipCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_UID.ToString()))
|
||||
foreach (UserInfo tmp in _CacheByPrimaryKey[_UID.ToString()])
|
||||
|
Reference in New Issue
Block a user