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

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

            if (Ref6 != null)
            {
                if (!Ref6.Ref6Actions.Contains(this))
                {
                    Ref6.Ref6Actions.Add(this);
                }

                RefId = Ref6.RefId;
            }
            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Ref6", previousValue, Ref6);
                if (Ref6 != null && !Ref6.ChangeTracker.ChangeTrackingEnabled)
                {
                    Ref6.StartTracking();
                }
            }
        }
예제 #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();
 }