public Printmst BuildFromRow(DataRow row) { var returnRecord = Printmst.BuildPrintmstFromRow(row); returnRecord = this.BuildExtraFromRow <Printmst>(returnRecord, row); return(returnRecord); }
public Printmst Insert(Printmst record) { DataRow row = this.dataSet.ttblprintmst.NewttblprintmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblprintmst.AddttblprintmstRow((pdsprintmstDataSet.ttblprintmstRow)row); this.SaveChanges(); return(this.dataSet.ttblprintmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblprintmst.Rows[0]) : null); }
public Printmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Printmst printmst = null; if (row != null) { printmst = this.BuildFromRow(row); } return(printmst); }
protected Printmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblprintmst.AsEnumerable().SingleOrDefault(); Printmst printmst = null; if (row != null) { printmst = this.BuildFromRow(row); } return(printmst); }
public void Delete(Printmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblprintmst.NewttblprintmstRow(); Printmst.BuildMinimalRow(ref row, record); this.dataSet.ttblprintmst.AddttblprintmstRow((pdsprintmstDataSet.ttblprintmstRow)row); } row.Delete(); this.SaveChanges(); }
public Printmst Update(Printmst 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.ttblprintmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblprintmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Printmst record) { this.adapter.Delete(record); }
public Printmst Update(Printmst record) { return(this.adapter.Update(record)); }
public Printmst Insert(Printmst record) { return(this.adapter.Insert(record)); }
public Printmst Update(Printmst record) { return(this.repository.Update(record)); }
public Printmst Insert(Printmst record) { return(this.repository.Insert(record)); }
public void Delete(Printmst record) { this.repository.Delete(record); }
public void UpdateToRow(ref DataRow row, Printmst record) { Printmst.UpdateRowFromPrintmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }