/// <summary> /// Corrige l'état de la propriété de navigation Ref1. /// </summary> private void FixupRef1(Ref1 previousValue) { if (IsDeserializing) { return; } if (previousValue != null && previousValue.Ref1Actions.Contains(this)) { previousValue.Ref1Actions.Remove(this); } if (Ref1 != null) { if (!Ref1.Ref1Actions.Contains(this)) { Ref1.Ref1Actions.Add(this); } RefId = Ref1.RefId; } if (ChangeTracker.ChangeTrackingEnabled) { ChangeTracker.RecordValue("Ref1", previousValue, Ref1); if (Ref1 != null && !Ref1.ChangeTracker.ChangeTrackingEnabled) { Ref1.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(); }