Esempio n. 1
0
     public bool Equals(AdminFeeDate other)
     {
         if (ReferenceEquals(null, other)) return false;
         if (ReferenceEquals(this, other)) return true;
 		if (other.Id == 0 && Id == 0)
 			return false;
 		else
 			return other.Id == Id;
     }
Esempio n. 2
0
     private void FixupAdminFeeDate(AdminFeeDate previousValue)
     {
         if (IsDeserializing)
         {
             return;
         }
 
         if (previousValue != null && previousValue.RegionAdminFeeValues.Contains(this))
         {
             previousValue.RegionAdminFeeValues.Remove(this);
         }
 
         if (AdminFeeDate != null)
         {
             if (!AdminFeeDate.RegionAdminFeeValues.Contains(this))
             {
                 AdminFeeDate.RegionAdminFeeValues.Add(this);
             }
 
             DateId = AdminFeeDate.Id;
         }
         if (ChangeTracker.ChangeTrackingEnabled)
         {
             if (ChangeTracker.OriginalValues.ContainsKey("AdminFeeDate")
                 && (ChangeTracker.OriginalValues["AdminFeeDate"] == AdminFeeDate))
             {
                 ChangeTracker.OriginalValues.Remove("AdminFeeDate");
             }
             else
             {
                 ChangeTracker.RecordOriginalValue("AdminFeeDate", previousValue);
             }
             if (AdminFeeDate != null && !AdminFeeDate.ChangeTracker.ChangeTrackingEnabled)
             {
                 AdminFeeDate.StartTracking();
             }
         }
     }