/// <summary> /// Corrige l'état de la propriété de navigation Ref3. /// </summary> private void FixupRef3(Ref3 previousValue) { if (IsDeserializing) { return; } if (previousValue != null && previousValue.Ref3Actions.Contains(this)) { previousValue.Ref3Actions.Remove(this); } if (Ref3 != null) { if (!Ref3.Ref3Actions.Contains(this)) { Ref3.Ref3Actions.Add(this); } RefId = Ref3.RefId; } if (ChangeTracker.ChangeTrackingEnabled) { ChangeTracker.RecordValue("Ref3", previousValue, Ref3); if (Ref3 != null && !Ref3.ChangeTracker.ChangeTrackingEnabled) { Ref3.StartTracking(); } } }
/// <summary> /// Vide les propriétés de navigation. /// </summary> protected virtual void ClearNavigationProperties() { Actions.Clear(); RefResources.Clear(); Ref1.Clear(); Ref2.Clear(); Ref3.Clear(); Ref4.Clear(); Ref5.Clear(); Ref6.Clear(); Ref7.Clear(); RefActionCategories.Clear(); Skills.Clear(); DocumentationActionDrafts.Clear(); }