public void AddToAccess(GeneralRow currentObj) { currentObj.dRow = table.NewRow(); currentObj.FillDataRow(); table.Rows.Add(currentObj.dRow); d.SaveToAccess(tableName); }
//פונ זו מקבלת את האובייק הנוכחי שאמור להתעדכן באקסס public void UpdateToAccess(GeneralRow currentObj) { //מילוי מהשדות לדרוי currentObj.FillDataRow(); //עדכון מהדרוי לאקסס d.SaveToAccess(tableName); }
public override void DeleteToAccess(GeneralRow currentObj) { ((Car)currentObj).Active = false; currentObj.FillDataRow(); d.SaveToAccess(this.tableName); }
public override void DeleteToAccess(GeneralRow currentObj) { ((Fixs)currentObj).IsFix = true; currentObj.FillDataRow(); d.SaveToAccess(this.tableName); }