public Arbct BuildFromRow(DataRow row) { var returnRecord = Arbct.BuildArbctFromRow(row); returnRecord = this.BuildExtraFromRow <Arbct>(returnRecord, row); return(returnRecord); }
public Arbct Insert(Arbct record) { DataRow row = this.dataSet.ttblarbct.NewttblarbctRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarbct.AddttblarbctRow((pdsarbctDataSet.ttblarbctRow)row); this.SaveChanges(); return(this.dataSet.ttblarbct.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbct.Rows[0]) : null); }
public Arbct GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arbct arbct = null; if (row != null) { arbct = this.BuildFromRow(row); } return(arbct); }
protected Arbct Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarbct.AsEnumerable().SingleOrDefault(); Arbct arbct = null; if (row != null) { arbct = this.BuildFromRow(row); } return(arbct); }
public void Delete(Arbct record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarbct.NewttblarbctRow(); Arbct.BuildMinimalRow(ref row, record); this.dataSet.ttblarbct.AddttblarbctRow((pdsarbctDataSet.ttblarbctRow)row); } row.Delete(); this.SaveChanges(); }
public Arbct Update(Arbct 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.ttblarbct.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbct.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Arbct Insert(Arbct record) { return(this.repository.Insert(record)); }
public void Delete(Arbct record) { this.repository.Delete(record); }
public Arbct Update(Arbct record) { return(this.repository.Update(record)); }
public void Delete(Arbct record) { this.adapter.Delete(record); }
public Arbct Update(Arbct record) { return(this.adapter.Update(record)); }
public Arbct Insert(Arbct record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Arbct record) { Arbct.UpdateRowFromArbct(ref row, record); this.ExtraUpdateToRow(ref row, record); }