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