/// <summary> /// Deprecated Method for adding a new object to the Medications EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToMedications(Medication medication) { base.AddObject("Medications", medication); }
/// <summary> /// Create a new Medication object. /// </summary> /// <param name="medicationId">Initial value of the MedicationId property.</param> /// <param name="accountId">Initial value of the AccountId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="currentVersion">Initial value of the CurrentVersion property.</param> public static Medication CreateMedication(global::System.Int32 medicationId, global::System.Int32 accountId, global::System.String name, global::System.Byte[] currentVersion) { Medication medication = new Medication(); medication.MedicationId = medicationId; medication.AccountId = accountId; medication.Name = name; medication.CurrentVersion = currentVersion; return medication; }