예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the SpareInOverpricingViews EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSpareInOverpricingViews(SpareInOverpricingView spareInOverpricingView)
 {
     base.AddObject("SpareInOverpricingViews", spareInOverpricingView);
 }
예제 #2
0
 /// <summary>
 /// Create a new SpareInOverpricingView object.
 /// </summary>
 /// <param name="incomeID">Initial value of the IncomeID property.</param>
 /// <param name="id">Initial value of the id property.</param>
 public static SpareInOverpricingView CreateSpareInOverpricingView(global::System.Int32 incomeID, global::System.Int32 id)
 {
     SpareInOverpricingView spareInOverpricingView = new SpareInOverpricingView();
     spareInOverpricingView.IncomeID = incomeID;
     spareInOverpricingView.id = id;
     return spareInOverpricingView;
 }
예제 #3
0
 public void OverpricingOfferingEdit(SpareInOverpricingView siov)
 {
     objDataContext = new DriveEntities();
     spare_in_overpricing s = objDataContext.spare_in_overpricing.FirstOrDefault(i => i.id == siov.id);
     s.percentNew = siov.percentNew;
     s.priceNew = siov.priceNew;
     s.sumNew = siov.sumNew;
     objDataContext.SaveChanges();
 }