private bool FilterPZS(PZS entity)
 {
     return (entity.PZSid == this.PZSId);
 }
 private void DetachPZS(PZS entity)
 {
     entity.Cis_Obec = null;
 }
 private bool FilterPZS(PZS entity)
 {
     return (entity.Mesto == this.Id);
 }
 private void AttachPZS(PZS entity)
 {
     entity.Cis_Obec = this;
 }
Example #5
0
     private void FixupPZS(PZS previousValue)
     {
         if (previousValue != null && previousValue.Doktor.Contains(this))
         {
             previousValue.Doktor.Remove(this);
         }
 
         if (PZS != null)
         {
             if (!PZS.Doktor.Contains(this))
             {
                 PZS.Doktor.Add(this);
             }
             if (PZSId != PZS.PZSid)
             {
                 PZSId = PZS.PZSid;
             }
         }
     }
 /// <summary>
 /// Deprecated Method for adding a new object to the PZS EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPZS(PZS pZS)
 {
     base.AddObject("PZS", pZS);
 }
 /// <summary>
 /// Create a new PZS object.
 /// </summary>
 /// <param name="pZSid">Initial value of the PZSid property.</param>
 public static PZS CreatePZS(global::System.Int32 pZSid)
 {
     PZS pZS = new PZS();
     pZS.PZSid = pZSid;
     return pZS;
 }
     private void FixupPZS(PZS previousValue)
     {
         if (previousValue != null && previousValue.Zvlastne_upozornenie.Contains(this))
         {
             previousValue.Zvlastne_upozornenie.Remove(this);
         }
 
         if (PZS != null)
         {
             if (!PZS.Zvlastne_upozornenie.Contains(this))
             {
                 PZS.Zvlastne_upozornenie.Add(this);
             }
             if (PZSId != PZS.PZSid)
             {
                 PZSId = PZS.PZSid;
             }
         }
         else if (!_settingFK)
         {
             PZSId = null;
         }
     }