public EventSetupFlds BuildFromRow(DataRow row) { var returnRecord = EventSetupFlds.BuildEventSetupFldsFromRow(row); returnRecord = this.BuildExtraFromRow <EventSetupFlds>(returnRecord, row); return(returnRecord); }
public EventSetupFlds Insert(EventSetupFlds record) { DataRow row = this.dataSet.ttblevent_setup_flds.Newttblevent_setup_fldsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblevent_setup_flds.Addttblevent_setup_fldsRow((pdsevent_setup_fldsDataSet.ttblevent_setup_fldsRow)row); this.SaveChanges(); return(this.dataSet.ttblevent_setup_flds.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_setup_flds.Rows[0]) : null); }
public EventSetupFlds GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); EventSetupFlds eventSetupFlds = null; if (row != null) { eventSetupFlds = this.BuildFromRow(row); } return(eventSetupFlds); }
protected EventSetupFlds Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblevent_setup_flds.AsEnumerable().SingleOrDefault(); EventSetupFlds eventSetupFlds = null; if (row != null) { eventSetupFlds = this.BuildFromRow(row); } return(eventSetupFlds); }
public void Delete(EventSetupFlds record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblevent_setup_flds.Newttblevent_setup_fldsRow(); EventSetupFlds.BuildMinimalRow(ref row, record); this.dataSet.ttblevent_setup_flds.Addttblevent_setup_fldsRow((pdsevent_setup_fldsDataSet.ttblevent_setup_fldsRow)row); } row.Delete(); this.SaveChanges(); }
public EventSetupFlds Update(EventSetupFlds 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_setup_flds.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblevent_setup_flds.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public EventSetupFlds Insert(EventSetupFlds record) { return(this.repository.Insert(record)); }
public void Delete(EventSetupFlds record) { this.repository.Delete(record); }
public EventSetupFlds Update(EventSetupFlds record) { return(this.repository.Update(record)); }
public void Delete(EventSetupFlds record) { this.adapter.Delete(record); }
public EventSetupFlds Update(EventSetupFlds record) { return(this.adapter.Update(record)); }
public EventSetupFlds Insert(EventSetupFlds record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, EventSetupFlds record) { EventSetupFlds.UpdateRowFromEventSetupFlds(ref row, record); this.ExtraUpdateToRow(ref row, record); }