private bool FilterCis_Okres(Cis_Okres entity) { return (entity.Id == this.OkresID); }
private void FixupCis_Okres(Cis_Okres previousValue) { if (previousValue != null && previousValue.Cis_Obec.Contains(this)) { previousValue.Cis_Obec.Remove(this); } if (Cis_Okres != null) { if (!Cis_Okres.Cis_Obec.Contains(this)) { Cis_Okres.Cis_Obec.Add(this); } if (OkresID != Cis_Okres.Id) { OkresID = Cis_Okres.Id; } } else if (!_settingFK) { OkresID = null; } }
private bool FilterCis_Okres(Cis_Okres entity) { return (entity.KrajID == this.Id); }
private void DetachCis_Okres(Cis_Okres entity) { entity.Cis_Kraj = null; }
private void AttachCis_Okres(Cis_Okres entity) { entity.Cis_Kraj = this; }
/// <summary> /// Deprecated Method for adding a new object to the Cis_Okres EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCis_Okres(Cis_Okres cis_Okres) { base.AddObject("Cis_Okres", cis_Okres); }
/// <summary> /// Create a new Cis_Okres object. /// </summary> /// <param name="id">Initial value of the Id property.</param> public static Cis_Okres CreateCis_Okres(global::System.Int32 id) { Cis_Okres cis_Okres = new Cis_Okres(); cis_Okres.Id = id; return cis_Okres; }