public Icenh BuildFromRow(DataRow row) { var returnRecord = Icenh.BuildIcenhFromRow(row); returnRecord = this.BuildExtraFromRow <Icenh>(returnRecord, row); return(returnRecord); }
public Icenh Insert(Icenh record) { DataRow row = this.dataSet.ttblicenh.NewttblicenhRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicenh.AddttblicenhRow((pdsicenhDataSet.ttblicenhRow)row); this.SaveChanges(); return(this.dataSet.ttblicenh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicenh.Rows[0]) : null); }
public Icenh GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icenh icenh = null; if (row != null) { icenh = this.BuildFromRow(row); } return(icenh); }
protected Icenh Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicenh.AsEnumerable().SingleOrDefault(); Icenh icenh = null; if (row != null) { icenh = this.BuildFromRow(row); } return(icenh); }
private void DeleteUseRowID(Icenh record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicenh.NewttblicenhRow(); Icenh.BuildMinimalRow(ref row, record); this.dataSet.ttblicenh.AddttblicenhRow((pdsicenhDataSet.ttblicenhRow)row); } row.Delete(); this.SaveChanges(); }
public Icenh Update(Icenh record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblicenh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicenh.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icenh record) { Icenh.UpdateRowFromIcenh(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icenh record) { this.repository.Delete(record); }
public Icenh Update(Icenh record) { return(this.repository.Update(record)); }
public Icenh Insert(Icenh record) { return(this.repository.Insert(record)); }
public Icenh Insert(Icenh record) { return(this.adapter.Insert(record)); }
public void Delete(Icenh record) { this.adapter.Delete(record); }
public Icenh Update(Icenh record) { return(this.adapter.Update(record)); }