public EventTrans BuildFromRow(DataRow row) { var returnRecord = EventTrans.BuildEventTransFromRow(row); returnRecord = this.BuildExtraFromRow <EventTrans>(returnRecord, row); return(returnRecord); }
public EventTrans Insert(EventTrans record) { DataRow row = this.dataSet.ttblevent_trans.Newttblevent_transRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblevent_trans.Addttblevent_transRow((pdsevent_transDataSet.ttblevent_transRow)row); this.SaveChanges(); return(this.dataSet.ttblevent_trans.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_trans.Rows[0]) : null); }
public EventTrans GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); EventTrans eventTrans = null; if (row != null) { eventTrans = this.BuildFromRow(row); } return(eventTrans); }
protected EventTrans Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblevent_trans.AsEnumerable().SingleOrDefault(); EventTrans eventTrans = null; if (row != null) { eventTrans = this.BuildFromRow(row); } return(eventTrans); }
public void Delete(EventTrans record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblevent_trans.Newttblevent_transRow(); EventTrans.BuildMinimalRow(ref row, record); this.dataSet.ttblevent_trans.Addttblevent_transRow((pdsevent_transDataSet.ttblevent_transRow)row); } row.Delete(); this.SaveChanges(); }
public EventTrans Update(EventTrans record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblevent_trans.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_trans.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(EventTrans record) { this.repository.Delete(record); }
public EventTrans Update(EventTrans record) { return(this.repository.Update(record)); }
public EventTrans Insert(EventTrans record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, EventTrans record) { EventTrans.UpdateRowFromEventTrans(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(EventTrans record) { this.adapter.Delete(record); }
public EventTrans Update(EventTrans record) { return(this.adapter.Update(record)); }
public EventTrans Insert(EventTrans record) { return(this.adapter.Insert(record)); }