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