public static baseDS.sysAutoKeyPendingRow UpdateAutoKeyPending(string key, string value, DateTime timestamp) { baseDS.sysAutoKeyPendingDataTable tbl = sysAutoKeyPendingTA.GetByKeyValue(key, value); baseDS.sysAutoKeyPendingRow row; if (tbl.Count > 0) { row = tbl[0]; row.timeStamp = timestamp; } else { row = tbl.NewsysAutoKeyPendingRow(); row.key = key; row.value = value; row.timeStamp = timestamp; tbl.AddsysAutoKeyPendingRow(row); } sysAutoKeyPendingTA.Update(row); row.AcceptChanges(); return(row); }
public static void LoadData(baseDS.sysAutoKeyPendingDataTable tbl, string key) { sysAutoKeyPendingTA.ClearBeforeFill = false; sysAutoKeyPendingTA.FillByKey(tbl, key); }
public static void UpdateData(baseDS.sysAutoKeyPendingDataTable data) { sysAutoKeyPendingTA.Update(data); data.AcceptChanges(); }