private void FixupImplantaty(Implantaty previousValue) { if (previousValue != null && previousValue.Pristroje_implantaty.Contains(this)) { previousValue.Pristroje_implantaty.Remove(this); } if (Implantaty != null) { if (!Implantaty.Pristroje_implantaty.Contains(this)) { Implantaty.Pristroje_implantaty.Add(this); } if (IdPristroja != Implantaty.IdImplantatu) { IdPristroja = Implantaty.IdImplantatu; } } }
/// <summary> /// Deprecated Method for adding a new object to the Implantaty EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToImplantaty(Implantaty implantaty) { base.AddObject("Implantaty", implantaty); }
private bool FilterImplantaty(Implantaty entity) { return (entity.IdImplantatu == this.IdPristroja); }
/// <summary> /// Create a new Implantaty object. /// </summary> /// <param name="idImplantatu">Initial value of the IdImplantatu property.</param> public static Implantaty CreateImplantaty(global::System.Int32 idImplantatu) { Implantaty implantaty = new Implantaty(); implantaty.IdImplantatu = idImplantatu; return implantaty; }