public void Update(int HistoryID, int?IDtarget, DateTime?LogDate, string LogUser, string FieldName, string ChangedFrom, string ChangedTo, byte[] Dbtimestamp) { TargetHistory item = new TargetHistory(IDtarget); item.MarkOld(); item.IsLoaded = true; item.HistoryID = HistoryID; item.IDtarget = IDtarget; item.LogDate = LogDate; item.LogUser = LogUser; item.FieldName = FieldName; item.ChangedFrom = ChangedFrom; item.ChangedTo = ChangedTo; item.Dbtimestamp = Dbtimestamp; item.Save(UserName); }
public void Insert(int?IDtarget, DateTime?LogDate, string LogUser, string FieldName, string ChangedFrom, string ChangedTo, byte[] Dbtimestamp) { TargetHistory item = new TargetHistory(); item.IDtarget = IDtarget; item.LogDate = LogDate; item.LogUser = LogUser; item.FieldName = FieldName; item.ChangedFrom = ChangedFrom; item.ChangedTo = ChangedTo; item.Dbtimestamp = Dbtimestamp; item.Save(UserName); }
public bool Destroy(object HistoryID) { return(TargetHistory.Destroy(HistoryID) == 1); }
public bool Delete(object HistoryID) { return(TargetHistory.Delete(HistoryID) == 1); }