Example #1
0
     private void FixupForegaendeSortiment(Sortiment previousValue)
     {
         if (previousValue != null && previousValue.Sortiments_ForegaendeSortimentKey.Contains(this))
         {
             previousValue.Sortiments_ForegaendeSortimentKey.Remove(this);
         }
 
         if (ForegaendeSortiment != null)
         {
             if (!ForegaendeSortiment.Sortiments_ForegaendeSortimentKey.Contains(this))
             {
                 ForegaendeSortiment.Sortiments_ForegaendeSortimentKey.Add(this);
             }
             if (ForegaendeSortimentKey != ForegaendeSortiment.Key)
             {
                 ForegaendeSortimentKey = ForegaendeSortiment.Key;
             }
         }
         else if (!_settingFK)
         {
             ForegaendeSortimentKey = null;
         }
     }
Example #2
0
     private void FixupSortiment(Sortiment previousValue)
     {
         if (previousValue != null && previousValue.Skissartikels.Contains(this))
         {
             previousValue.Skissartikels.Remove(this);
         }
 
         if (Sortiment != null)
         {
             if (!Sortiment.Skissartikels.Contains(this))
             {
                 Sortiment.Skissartikels.Add(this);
             }
             if (SortimentKey != Sortiment.Key)
             {
                 SortimentKey = Sortiment.Key;
             }
         }
     }