public Apsd BuildFromRow(DataRow row) { var returnRecord = Apsd.BuildApsdFromRow(row); returnRecord = this.BuildExtraFromRow <Apsd>(returnRecord, row); return(returnRecord); }
public Apsd Insert(Apsd record) { DataRow row = this.dataSet.ttblapsd.NewttblapsdRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapsd.AddttblapsdRow((pdsapsdDataSet.ttblapsdRow)row); this.SaveChanges(); return(this.dataSet.ttblapsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapsd.Rows[0]) : null); }
public Apsd GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apsd apsd = null; if (row != null) { apsd = this.BuildFromRow(row); } return(apsd); }
protected Apsd Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapsd.AsEnumerable().SingleOrDefault(); Apsd apsd = null; if (row != null) { apsd = this.BuildFromRow(row); } return(apsd); }
public void Delete(Apsd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapsd.NewttblapsdRow(); Apsd.BuildMinimalRow(ref row, record); this.dataSet.ttblapsd.AddttblapsdRow((pdsapsdDataSet.ttblapsdRow)row); } row.Delete(); this.SaveChanges(); }
public Apsd Update(Apsd 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.ttblapsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapsd.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Apsd Insert(Apsd record) { return(this.repository.Insert(record)); }
public void Delete(Apsd record) { this.repository.Delete(record); }
public Apsd Update(Apsd record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Apsd record) { Apsd.UpdateRowFromApsd(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Apsd record) { this.adapter.Delete(record); }
public Apsd Update(Apsd record) { return(this.adapter.Update(record)); }
public Apsd Insert(Apsd record) { return(this.adapter.Insert(record)); }