Exemplo n.º 1
0
     private void FixupSasong_TomSasongKey(Sasong previousValue)
     {
         if (previousValue != null && previousValue.Infokods_TomSasongKey.Contains(this))
         {
             previousValue.Infokods_TomSasongKey.Remove(this);
         }
 
         if (Sasong_TomSasongKey != null)
         {
             if (!Sasong_TomSasongKey.Infokods_TomSasongKey.Contains(this))
             {
                 Sasong_TomSasongKey.Infokods_TomSasongKey.Add(this);
             }
             if (TomSasongKey != Sasong_TomSasongKey.Key)
             {
                 TomSasongKey = Sasong_TomSasongKey.Key;
             }
         }
         else if (!_settingFK)
         {
             TomSasongKey = null;
         }
     }
Exemplo n.º 2
0
     private void FixupSasong(Sasong previousValue)
     {
         if (previousValue != null && previousValue.Versions.Contains(this))
         {
             previousValue.Versions.Remove(this);
         }
 
         if (Sasong != null)
         {
             if (!Sasong.Versions.Contains(this))
             {
                 Sasong.Versions.Add(this);
             }
             if (SasongKey != Sasong.Key)
             {
                 SasongKey = Sasong.Key;
             }
         }
     }
Exemplo n.º 3
0
     private void FixupSasong_FromSasongKey(Sasong previousValue)
     {
         if (previousValue != null && previousValue.Infokods_FromSasongKey.Contains(this))
         {
             previousValue.Infokods_FromSasongKey.Remove(this);
         }
 
         if (Sasong_FromSasongKey != null)
         {
             if (!Sasong_FromSasongKey.Infokods_FromSasongKey.Contains(this))
             {
                 Sasong_FromSasongKey.Infokods_FromSasongKey.Add(this);
             }
             if (FromSasongKey != Sasong_FromSasongKey.Key)
             {
                 FromSasongKey = Sasong_FromSasongKey.Key;
             }
         }
     }
Exemplo n.º 4
0
     private void FixupSasong_ForegaendeSasongKey(Sasong previousValue)
     {
         if (previousValue != null && previousValue.Sasongs_ForegaendeSasongKey.Contains(this))
         {
             previousValue.Sasongs_ForegaendeSasongKey.Remove(this);
         }
 
         if (Sasong_ForegaendeSasongKey != null)
         {
             if (!Sasong_ForegaendeSasongKey.Sasongs_ForegaendeSasongKey.Contains(this))
             {
                 Sasong_ForegaendeSasongKey.Sasongs_ForegaendeSasongKey.Add(this);
             }
             if (ForegaendeSasongKey != Sasong_ForegaendeSasongKey.Key)
             {
                 ForegaendeSasongKey = Sasong_ForegaendeSasongKey.Key;
             }
         }
         else if (!_settingFK)
         {
             ForegaendeSasongKey = null;
         }
     }