/// <summary> /// Deprecated Method for adding a new object to the SpareInOverpricingViews EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToSpareInOverpricingViews(SpareInOverpricingView spareInOverpricingView) { base.AddObject("SpareInOverpricingViews", spareInOverpricingView); }
/// <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; }
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(); }