/// <summary> /// Create a new Medicine object. /// </summary> /// <param name="id">Initial value of the id property.</param> /// <param name="description">Initial value of the description property.</param> /// <param name="name">Initial value of the name property.</param> /// <param name="company">Initial value of the company property.</param> public static Medicine CreateMedicine(global::System.Int32 id, global::System.String description, global::System.String name, global::System.String company) { Medicine medicine = new Medicine(); medicine.id = id; medicine.description = description; medicine.name = name; medicine.company = company; return medicine; }
/// <summary> /// Deprecated Method for adding a new object to the Medicines EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMedicines(Medicine medicine) { base.AddObject("Medicines", medicine); }