public Arbcb BuildFromRow(DataRow row) { var returnRecord = Arbcb.BuildArbcbFromRow(row); returnRecord = this.BuildExtraFromRow <Arbcb>(returnRecord, row); return(returnRecord); }
public Arbcb Insert(Arbcb record) { DataRow row = this.dataSet.ttblarbcb.NewttblarbcbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarbcb.AddttblarbcbRow((pdsarbcbDataSet.ttblarbcbRow)row); this.SaveChanges(); return(this.dataSet.ttblarbcb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbcb.Rows[0]) : null); }
public Arbcb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arbcb arbcb = null; if (row != null) { arbcb = this.BuildFromRow(row); } return(arbcb); }
protected Arbcb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarbcb.AsEnumerable().SingleOrDefault(); Arbcb arbcb = null; if (row != null) { arbcb = this.BuildFromRow(row); } return(arbcb); }
public void Delete(Arbcb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarbcb.NewttblarbcbRow(); Arbcb.BuildMinimalRow(ref row, record); this.dataSet.ttblarbcb.AddttblarbcbRow((pdsarbcbDataSet.ttblarbcbRow)row); } row.Delete(); this.SaveChanges(); }
public Arbcb Update(Arbcb 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.ttblarbcb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbcb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Arbcb record) { this.adapter.Delete(record); }
public Arbcb Update(Arbcb record) { return(this.adapter.Update(record)); }
public Arbcb Insert(Arbcb record) { return(this.adapter.Insert(record)); }
public void Delete(Arbcb record) { this.repository.Delete(record); }
public Arbcb Update(Arbcb record) { return(this.repository.Update(record)); }
public Arbcb Insert(Arbcb record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arbcb record) { Arbcb.UpdateRowFromArbcb(ref row, record); this.ExtraUpdateToRow(ref row, record); }