public Apebt BuildFromRow(DataRow row) { var returnRecord = Apebt.BuildApebtFromRow(row); returnRecord = this.BuildExtraFromRow <Apebt>(returnRecord, row); return(returnRecord); }
public Apebt Insert(Apebt record) { DataRow row = this.dataSet.ttblapebt.NewttblapebtRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapebt.AddttblapebtRow((pdsapebtDataSet.ttblapebtRow)row); this.SaveChanges(); return(this.dataSet.ttblapebt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebt.Rows[0]) : null); }
public Apebt GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apebt apebt = null; if (row != null) { apebt = this.BuildFromRow(row); } return(apebt); }
protected Apebt Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapebt.AsEnumerable().SingleOrDefault(); Apebt apebt = null; if (row != null) { apebt = this.BuildFromRow(row); } return(apebt); }
public void Delete(Apebt record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapebt.NewttblapebtRow(); Apebt.BuildMinimalRow(ref row, record); this.dataSet.ttblapebt.AddttblapebtRow((pdsapebtDataSet.ttblapebtRow)row); } row.Delete(); this.SaveChanges(); }
public Apebt Update(Apebt 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.ttblapebt.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebt.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Apebt record) { this.adapter.Delete(record); }
public Apebt Update(Apebt record) { return(this.adapter.Update(record)); }
public Apebt Insert(Apebt record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Apebt record) { Apebt.UpdateRowFromApebt(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apebt record) { this.repository.Delete(record); }
public Apebt Update(Apebt record) { return(this.repository.Update(record)); }
public Apebt Insert(Apebt record) { return(this.repository.Insert(record)); }