public Rptmst BuildFromRow(DataRow row) { var returnRecord = Rptmst.BuildRptmstFromRow(row); returnRecord = this.BuildExtraFromRow <Rptmst>(returnRecord, row); return(returnRecord); }
public Rptmst Insert(Rptmst record) { DataRow row = this.dataSet.ttblrptmst.NewttblrptmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblrptmst.AddttblrptmstRow((pdsrptmstDataSet.ttblrptmstRow)row); this.SaveChanges(); return(this.dataSet.ttblrptmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrptmst.Rows[0]) : null); }
public Rptmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Rptmst rptmst = null; if (row != null) { rptmst = this.BuildFromRow(row); } return(rptmst); }
protected Rptmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblrptmst.AsEnumerable().SingleOrDefault(); Rptmst rptmst = null; if (row != null) { rptmst = this.BuildFromRow(row); } return(rptmst); }
public void Delete(Rptmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrptmst.NewttblrptmstRow(); Rptmst.BuildMinimalRow(ref row, record); this.dataSet.ttblrptmst.AddttblrptmstRow((pdsrptmstDataSet.ttblrptmstRow)row); } row.Delete(); this.SaveChanges(); }
public Rptmst Update(Rptmst 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.ttblrptmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrptmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Rptmst record) { this.adapter.Delete(record); }
public Rptmst Update(Rptmst record) { return(this.adapter.Update(record)); }
public Rptmst Insert(Rptmst record) { return(this.adapter.Insert(record)); }
public Rptmst Update(Rptmst record) { return(this.repository.Update(record)); }
public Rptmst Insert(Rptmst record) { return(this.repository.Insert(record)); }
public void Delete(Rptmst record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Rptmst record) { Rptmst.UpdateRowFromRptmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }