示例#1
0
     private void FixupLoginCredential(LoginCredential previousValue)
     {
         if (IsDeserializing)
         {
             return;
         }
 
         if (ChangeTracker.ChangeTrackingEnabled)
         {
             if (ChangeTracker.OriginalValues.ContainsKey("LoginCredential")
                 && (ChangeTracker.OriginalValues["LoginCredential"] == LoginCredential))
             {
                 ChangeTracker.OriginalValues.Remove("LoginCredential");
             }
             else
             {
                 ChangeTracker.RecordOriginalValue("LoginCredential", previousValue);
             }
             if (LoginCredential != null && !LoginCredential.ChangeTracker.ChangeTrackingEnabled)
             {
                 LoginCredential.StartTracking();
             }
             FixupLoginCredentialKeys();
         }
     }
示例#2
0
文件: User.cs 项目: fengyu25/comp5348
     private void FixupLoginCredential(LoginCredential previousValue)
     {
         if (IsDeserializing)
         {
             return;
         }
 
         if (ChangeTracker.ChangeTrackingEnabled)
         {
             if (ChangeTracker.OriginalValues.ContainsKey("LoginCredential")
                 && (ChangeTracker.OriginalValues["LoginCredential"] == LoginCredential))
             {
                 ChangeTracker.OriginalValues.Remove("LoginCredential");
             }
             else
             {
                 ChangeTracker.RecordOriginalValue("LoginCredential", previousValue);
             }
             if (LoginCredential != null && !LoginCredential.ChangeTracker.ChangeTrackingEnabled)
             {
                 LoginCredential.StartTracking();
             }
             FixupLoginCredentialKeys();
         }
     }