Beispiel #1
0
        /// <summary>
        /// Corrige l'état de la propriété de navigation Ref2.
        /// </summary>
        private void FixupRef2(Ref2 previousValue)
        {
            if (IsDeserializing)
            {
                return;
            }

            if (previousValue != null && previousValue.Ref2Actions.Contains(this))
            {
                previousValue.Ref2Actions.Remove(this);
            }

            if (Ref2 != null)
            {
                if (!Ref2.Ref2Actions.Contains(this))
                {
                    Ref2.Ref2Actions.Add(this);
                }

                RefId = Ref2.RefId;
            }
            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Ref2", previousValue, Ref2);
                if (Ref2 != null && !Ref2.ChangeTracker.ChangeTrackingEnabled)
                {
                    Ref2.StartTracking();
                }
            }
        }
Beispiel #2
0
 /// <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();
 }