/// <summary> /// Deprecated Method for adding a new object to the MedicineActiveIngredients EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMedicineActiveIngredients(MedicineActiveIngredient medicineActiveIngredient) { base.AddObject("MedicineActiveIngredients", medicineActiveIngredient); }
/// <summary> /// Create a new MedicineActiveIngredient object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="practiceId">Initial value of the PracticeId property.</param> /// <param name="medicineId">Initial value of the MedicineId property.</param> public static MedicineActiveIngredient CreateMedicineActiveIngredient(global::System.Int32 id, global::System.String name, global::System.Int32 practiceId, global::System.Int32 medicineId) { MedicineActiveIngredient medicineActiveIngredient = new MedicineActiveIngredient(); medicineActiveIngredient.Id = id; medicineActiveIngredient.Name = name; medicineActiveIngredient.PracticeId = practiceId; medicineActiveIngredient.MedicineId = medicineId; return medicineActiveIngredient; }