/// <summary>
 /// Deprecated Method for adding a new object to the PurchaseDetails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPurchaseDetails(PurchaseDetail purchaseDetail)
 {
     base.AddObject("PurchaseDetails", purchaseDetail);
 }
 /// <summary>
 /// Create a new PurchaseDetail object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="mRP">Initial value of the MRP property.</param>
 /// <param name="buyPrice">Initial value of the BuyPrice property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="dues">Initial value of the Dues property.</param>
 /// <param name="purchaseId">Initial value of the PurchaseId property.</param>
 public static PurchaseDetail CreatePurchaseDetail(global::System.Guid id, global::System.String name, global::System.Double mRP, global::System.Double buyPrice, global::System.Double quantity, global::System.Double dues, global::System.Guid purchaseId)
 {
     PurchaseDetail purchaseDetail = new PurchaseDetail();
     purchaseDetail.Id = id;
     purchaseDetail.Name = name;
     purchaseDetail.MRP = mRP;
     purchaseDetail.BuyPrice = buyPrice;
     purchaseDetail.Quantity = quantity;
     purchaseDetail.Dues = dues;
     purchaseDetail.PurchaseId = purchaseId;
     return purchaseDetail;
 }