public Wmst BuildFromRow(DataRow row) { var returnRecord = Wmst.BuildWmstFromRow(row); returnRecord = this.BuildExtraFromRow <Wmst>(returnRecord, row); return(returnRecord); }
public Wmst Insert(Wmst record) { DataRow row = this.dataSet.ttblwmst.NewttblwmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwmst.AddttblwmstRow((pdswmstDataSet.ttblwmstRow)row); this.SaveChanges(); return(this.dataSet.ttblwmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwmst.Rows[0]) : null); }
public Wmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wmst wmst = null; if (row != null) { wmst = this.BuildFromRow(row); } return(wmst); }
protected Wmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwmst.AsEnumerable().SingleOrDefault(); Wmst wmst = null; if (row != null) { wmst = this.BuildFromRow(row); } return(wmst); }
public void Delete(Wmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwmst.NewttblwmstRow(); Wmst.BuildMinimalRow(ref row, record); this.dataSet.ttblwmst.AddttblwmstRow((pdswmstDataSet.ttblwmstRow)row); } row.Delete(); this.SaveChanges(); }
public Wmst Update(Wmst 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.ttblwmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Wmst Insert(Wmst record) { return(this.repository.Insert(record)); }
public void Delete(Wmst record) { this.repository.Delete(record); }
public Wmst Update(Wmst record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Wmst record) { Wmst.UpdateRowFromWmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Wmst record) { this.adapter.Delete(record); }
public Wmst Update(Wmst record) { return(this.adapter.Update(record)); }
public Wmst Insert(Wmst record) { return(this.adapter.Insert(record)); }