Exemple #1
0
     private void FixupUserType(UserType previousValue)
     {
         if (previousValue != null && previousValue.UserInfoes.Contains(this))
         {
             previousValue.UserInfoes.Remove(this);
         }
 
         if (UserType != null)
         {
             if (!UserType.UserInfoes.Contains(this))
             {
                 UserType.UserInfoes.Add(this);
             }
             if (UserTypeId != UserType.UserTypeID)
             {
                 UserTypeId = UserType.UserTypeID;
             }
         }
     }