public SavedPrescriptionDrug Clone()
        {
            SavedPrescriptionDrug newItem = new SavedPrescriptionDrug();

            newItem._Id = this._Id;
            newItem._DrugId = this._DrugId;
            newItem.Drug = this.Drug;

            newItem._CustomManual = this._CustomManual;
            newItem._PrescriptionId = this._PrescriptionId;
            newItem.SavedPrescription = this.SavedPrescription;

            DataLayer.ChangeEntityState(newItem, System.Data.EntityState.Detached);
            return newItem;
        }
 /// <summary>
 /// Deprecated Method for adding a new object to the SavedPrescriptionDrugs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSavedPrescriptionDrugs(SavedPrescriptionDrug savedPrescriptionDrug)
 {
     base.AddObject("SavedPrescriptionDrugs", savedPrescriptionDrug);
 }
 /// <summary>
 /// Create a new SavedPrescriptionDrug object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="prescriptionId">Initial value of the PrescriptionId property.</param>
 /// <param name="drugId">Initial value of the DrugId property.</param>
 public static SavedPrescriptionDrug CreateSavedPrescriptionDrug(global::System.Int32 id, global::System.Int32 prescriptionId, global::System.Int32 drugId)
 {
     SavedPrescriptionDrug savedPrescriptionDrug = new SavedPrescriptionDrug();
     savedPrescriptionDrug.Id = id;
     savedPrescriptionDrug.PrescriptionId = prescriptionId;
     savedPrescriptionDrug.DrugId = drugId;
     return savedPrescriptionDrug;
 }