public Icsru BuildFromRow(DataRow row) { var returnRecord = Icsru.BuildIcsruFromRow(row); returnRecord = this.BuildExtraFromRow <Icsru>(returnRecord, row); return(returnRecord); }
public Icsru Insert(Icsru record) { DataRow row = this.dataSet.ttblicsru.NewttblicsruRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsru.AddttblicsruRow((pdsicsruDataSet.ttblicsruRow)row); this.SaveChanges(); return(this.dataSet.ttblicsru.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsru.Rows[0]) : null); }
public Icsru GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsru icsru = null; if (row != null) { icsru = this.BuildFromRow(row); } return(icsru); }
protected Icsru Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsru.AsEnumerable().SingleOrDefault(); Icsru icsru = null; if (row != null) { icsru = this.BuildFromRow(row); } return(icsru); }
public void Delete(Icsru record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsru.NewttblicsruRow(); Icsru.BuildMinimalRow(ref row, record); this.dataSet.ttblicsru.AddttblicsruRow((pdsicsruDataSet.ttblicsruRow)row); } row.Delete(); this.SaveChanges(); }
public Icsru Update(Icsru 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.ttblicsru.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsru.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Icsru Insert(Icsru record) { return(this.repository.Insert(record)); }
public void Delete(Icsru record) { this.repository.Delete(record); }
public Icsru Update(Icsru record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Icsru record) { Icsru.UpdateRowFromIcsru(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsru record) { this.adapter.Delete(record); }
public Icsru Update(Icsru record) { return(this.adapter.Update(record)); }
public Icsru Insert(Icsru record) { return(this.adapter.Insert(record)); }