private void Fixupaspnet_Paths(aspnet_Paths previousValue, bool skipKeys = false) { if (IsDeserializing) { return; } if (previousValue != null && previousValue.aspnet_PersonalizationPerUser.Contains(this)) { previousValue.aspnet_PersonalizationPerUser.Remove(this); } if (aspnet_Paths != null) { if (!aspnet_Paths.aspnet_PersonalizationPerUser.Contains(this)) { aspnet_Paths.aspnet_PersonalizationPerUser.Add(this); } PathId = aspnet_Paths.PathId; } else if (!skipKeys) { PathId = null; } if (ChangeTracker.ChangeTrackingEnabled) { if (ChangeTracker.OriginalValues.ContainsKey("aspnet_Paths") && (ChangeTracker.OriginalValues["aspnet_Paths"] == aspnet_Paths)) { ChangeTracker.OriginalValues.Remove("aspnet_Paths"); } else { ChangeTracker.RecordOriginalValue("aspnet_Paths", previousValue); } if (aspnet_Paths != null && !aspnet_Paths.ChangeTracker.ChangeTrackingEnabled) { aspnet_Paths.StartTracking(); } } }
private void Fixupaspnet_Paths(aspnet_Paths previousValue) { if (IsDeserializing) { return; } if (previousValue != null && ReferenceEquals(previousValue.aspnet_PersonalizationAllUsers, this)) { previousValue.aspnet_PersonalizationAllUsers = null; } if (aspnet_Paths != null) { aspnet_Paths.aspnet_PersonalizationAllUsers = this; PathId = aspnet_Paths.PathId; } if (ChangeTracker.ChangeTrackingEnabled) { if (ChangeTracker.OriginalValues.ContainsKey("aspnet_Paths") && (ChangeTracker.OriginalValues["aspnet_Paths"] == aspnet_Paths)) { ChangeTracker.OriginalValues.Remove("aspnet_Paths"); } else { ChangeTracker.RecordOriginalValue("aspnet_Paths", previousValue); } if (aspnet_Paths != null && !aspnet_Paths.ChangeTracker.ChangeTrackingEnabled) { aspnet_Paths.StartTracking(); } } }