public Arebt BuildFromRow(DataRow row) { var returnRecord = Arebt.BuildArebtFromRow(row); returnRecord = this.BuildExtraFromRow <Arebt>(returnRecord, row); return(returnRecord); }
public Arebt Insert(Arebt record) { DataRow row = this.dataSet.ttblarebt.NewttblarebtRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarebt.AddttblarebtRow((pdsarebtDataSet.ttblarebtRow)row); this.SaveChanges(); return(this.dataSet.ttblarebt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarebt.Rows[0]) : null); }
public Arebt GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arebt arebt = null; if (row != null) { arebt = this.BuildFromRow(row); } return(arebt); }
protected Arebt Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarebt.AsEnumerable().SingleOrDefault(); Arebt arebt = null; if (row != null) { arebt = this.BuildFromRow(row); } return(arebt); }
public void Delete(Arebt record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarebt.NewttblarebtRow(); Arebt.BuildMinimalRow(ref row, record); this.dataSet.ttblarebt.AddttblarebtRow((pdsarebtDataSet.ttblarebtRow)row); } row.Delete(); this.SaveChanges(); }
public Arebt Update(Arebt 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.ttblarebt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarebt.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arebt record) { this.repository.Delete(record); }
public Arebt Update(Arebt record) { return(this.repository.Update(record)); }
public Arebt Insert(Arebt record) { return(this.repository.Insert(record)); }
public void Delete(Arebt record) { this.adapter.Delete(record); }
public Arebt Update(Arebt record) { return(this.adapter.Update(record)); }
public Arebt Insert(Arebt record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arebt record) { Arebt.UpdateRowFromArebt(ref row, record); this.ExtraUpdateToRow(ref row, record); }