Ejemplo n.º 1
0
        /// <summary>
        /// Corrige l'état de la propriété de navigation Ref4.
        /// </summary>
        private void FixupRef4(Ref4 previousValue)
        {
            if (IsDeserializing)
            {
                return;
            }

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

            if (Ref4 != null)
            {
                if (!Ref4.Ref4Actions.Contains(this))
                {
                    Ref4.Ref4Actions.Add(this);
                }

                RefId = Ref4.RefId;
            }
            if (ChangeTracker.ChangeTrackingEnabled)
            {
                ChangeTracker.RecordValue("Ref4", previousValue, Ref4);
                if (Ref4 != null && !Ref4.ChangeTracker.ChangeTrackingEnabled)
                {
                    Ref4.StartTracking();
                }
            }
        }
Ejemplo n.º 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();
 }