Add initialization and reset code
This commit is contained in:
@@ -151,6 +151,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("RoleAssignmentCount", true);
|
||||
if (_RoleAssignmentCount < 0)
|
||||
_RoleAssignmentCount = RoleAssignments.Count;
|
||||
return _RoleAssignmentCount;
|
||||
}
|
||||
}
|
||||
@@ -171,6 +173,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshRoleAssignments()
|
||||
{
|
||||
_RoleAssignmentCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_RID.ToString()))
|
||||
foreach (RoleInfo tmp in _CacheByPrimaryKey[_RID.ToString()])
|
||||
@@ -186,6 +189,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("RolePermissionCount", true);
|
||||
if (_RolePermissionCount < 0)
|
||||
_RolePermissionCount = RolePermissions.Count;
|
||||
return _RolePermissionCount;
|
||||
}
|
||||
}
|
||||
@@ -206,6 +211,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshRolePermissions()
|
||||
{
|
||||
_RolePermissionCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_RID.ToString()))
|
||||
foreach (RoleInfo tmp in _CacheByPrimaryKey[_RID.ToString()])
|
||||
|
Reference in New Issue
Block a user