private void FixupCis_Obec(Cis_Obec previousValue) { if (previousValue != null && previousValue.Pobyt.Contains(this)) { previousValue.Pobyt.Remove(this); } if (Cis_Obec != null) { if (!Cis_Obec.Pobyt.Contains(this)) { Cis_Obec.Pobyt.Add(this); } if (IdObec != Cis_Obec.Id) { IdObec = Cis_Obec.Id; } } }
private bool FilterCis_Obec(Cis_Obec entity) { return (entity.Id == this.MiestoNarodenia); }
private bool FilterCis_Obec(Cis_Obec entity) { return (entity.Id == this.IdObec); }
private void DetachCis_Obec(Cis_Obec entity) { entity.Cis_Okres = null; }
private bool FilterCis_Obec(Cis_Obec entity) { return (entity.OkresID == this.Id); }
private void AttachCis_Obec(Cis_Obec entity) { entity.Cis_Okres = this; }
private void FixupCis_Obec(Cis_Obec previousValue) { if (previousValue != null && previousValue.PZS.Contains(this)) { previousValue.PZS.Remove(this); } if (Cis_Obec != null) { if (!Cis_Obec.PZS.Contains(this)) { Cis_Obec.PZS.Add(this); } if (Mesto != Cis_Obec.Id) { Mesto = Cis_Obec.Id; } } else if (!_settingFK) { Mesto = null; } }
/// <summary> /// Deprecated Method for adding a new object to the Cis_Obec EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCis_Obec(Cis_Obec cis_Obec) { base.AddObject("Cis_Obec", cis_Obec); }
/// <summary> /// Create a new Cis_Obec object. /// </summary> /// <param name="id">Initial value of the Id property.</param> public static Cis_Obec CreateCis_Obec(global::System.Int32 id) { Cis_Obec cis_Obec = new Cis_Obec(); cis_Obec.Id = id; return cis_Obec; }
private void FixupCis_Obec(Cis_Obec previousValue) { if (previousValue != null && previousValue.IdentifikacneUdaje.Contains(this)) { previousValue.IdentifikacneUdaje.Remove(this); } if (Cis_Obec != null) { if (!Cis_Obec.IdentifikacneUdaje.Contains(this)) { Cis_Obec.IdentifikacneUdaje.Add(this); } if (MiestoNarodenia != Cis_Obec.Id) { MiestoNarodenia = Cis_Obec.Id; } } else if (!_settingFK) { MiestoNarodenia = null; } }