Exemplo n.º 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);
 }
Exemplo n.º 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;
 }
Exemplo n.º 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();
 }