public Dealpd BuildFromRow(DataRow row) { var returnRecord = Dealpd.BuildDealpdFromRow(row); returnRecord = this.BuildExtraFromRow <Dealpd>(returnRecord, row); return(returnRecord); }
public Dealpd Insert(Dealpd record) { DataRow row = this.dataSet.ttbldealpd.NewttbldealpdRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbldealpd.AddttbldealpdRow((pdsdealpdDataSet.ttbldealpdRow)row); this.SaveChanges(); return(this.dataSet.ttbldealpd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldealpd.Rows[0]) : null); }
public Dealpd GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Dealpd dealpd = null; if (row != null) { dealpd = this.BuildFromRow(row); } return(dealpd); }
protected Dealpd Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbldealpd.AsEnumerable().SingleOrDefault(); Dealpd dealpd = null; if (row != null) { dealpd = this.BuildFromRow(row); } return(dealpd); }
public void Delete(Dealpd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldealpd.NewttbldealpdRow(); Dealpd.BuildMinimalRow(ref row, record); this.dataSet.ttbldealpd.AddttbldealpdRow((pdsdealpdDataSet.ttbldealpdRow)row); } row.Delete(); this.SaveChanges(); }
public Dealpd Update(Dealpd 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.ttbldealpd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldealpd.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Dealpd record) { this.adapter.Delete(record); }
public Dealpd Update(Dealpd record) { return(this.adapter.Update(record)); }
public Dealpd Insert(Dealpd record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Dealpd record) { Dealpd.UpdateRowFromDealpd(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Dealpd record) { this.repository.Delete(record); }
public Dealpd Update(Dealpd record) { return(this.repository.Update(record)); }
public Dealpd Insert(Dealpd record) { return(this.repository.Insert(record)); }