public Arbch BuildFromRow(DataRow row) { var returnRecord = Arbch.BuildArbchFromRow(row); returnRecord = this.BuildExtraFromRow <Arbch>(returnRecord, row); return(returnRecord); }
public Arbch Insert(Arbch record) { DataRow row = this.dataSet.ttblarbch.NewttblarbchRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblarbch.AddttblarbchRow((pdsarbchDataSet.ttblarbchRow)row); this.SaveChanges(); return(this.dataSet.ttblarbch.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbch.Rows[0]) : null); }
public Arbch GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Arbch arbch = null; if (row != null) { arbch = this.BuildFromRow(row); } return(arbch); }
protected Arbch Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblarbch.AsEnumerable().SingleOrDefault(); Arbch arbch = null; if (row != null) { arbch = this.BuildFromRow(row); } return(arbch); }
public void Delete(Arbch record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblarbch.NewttblarbchRow(); Arbch.BuildMinimalRow(ref row, record); this.dataSet.ttblarbch.AddttblarbchRow((pdsarbchDataSet.ttblarbchRow)row); } row.Delete(); this.SaveChanges(); }
public Arbch Update(Arbch 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.ttblarbch.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblarbch.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Arbch record) { Arbch.UpdateRowFromArbch(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Arbch record) { this.repository.Delete(record); }
public Arbch Update(Arbch record) { return(this.repository.Update(record)); }
public Arbch Insert(Arbch record) { return(this.repository.Insert(record)); }
public void Delete(Arbch record) { this.adapter.Delete(record); }
public Arbch Update(Arbch record) { return(this.adapter.Update(record)); }
public Arbch Insert(Arbch record) { return(this.adapter.Insert(record)); }