public Pmsb BuildFromRow(DataRow row) { var returnRecord = Pmsb.BuildPmsbFromRow(row); returnRecord = this.BuildExtraFromRow <Pmsb>(returnRecord, row); return(returnRecord); }
public Pmsb Insert(Pmsb record) { DataRow row = this.dataSet.ttblpmsb.NewttblpmsbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpmsb.AddttblpmsbRow((pdspmsbDataSet.ttblpmsbRow)row); this.SaveChanges(); return(this.dataSet.ttblpmsb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpmsb.Rows[0]) : null); }
public Pmsb GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Pmsb pmsb = null; if (row != null) { pmsb = this.BuildFromRow(row); } return(pmsb); }
protected Pmsb Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpmsb.AsEnumerable().SingleOrDefault(); Pmsb pmsb = null; if (row != null) { pmsb = this.BuildFromRow(row); } return(pmsb); }
public void Delete(Pmsb record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpmsb.NewttblpmsbRow(); Pmsb.BuildMinimalRow(ref row, record); this.dataSet.ttblpmsb.AddttblpmsbRow((pdspmsbDataSet.ttblpmsbRow)row); } row.Delete(); this.SaveChanges(); }
public Pmsb Update(Pmsb 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.ttblpmsb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpmsb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Pmsb Insert(Pmsb record) { return(this.repository.Insert(record)); }
public void Delete(Pmsb record) { this.repository.Delete(record); }
public Pmsb Update(Pmsb record) { return(this.repository.Update(record)); }
public void Delete(Pmsb record) { this.adapter.Delete(record); }
public Pmsb Update(Pmsb record) { return(this.adapter.Update(record)); }
public Pmsb Insert(Pmsb record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Pmsb record) { Pmsb.UpdateRowFromPmsb(ref row, record); this.ExtraUpdateToRow(ref row, record); }