public Wmsc BuildFromRow(DataRow row) { var returnRecord = Wmsc.BuildWmscFromRow(row); returnRecord = this.BuildExtraFromRow <Wmsc>(returnRecord, row); return(returnRecord); }
public Wmsc Insert(Wmsc record) { DataRow row = this.dataSet.ttblwmsc.NewttblwmscRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwmsc.AddttblwmscRow((pdswmscDataSet.ttblwmscRow)row); this.SaveChanges(); return(this.dataSet.ttblwmsc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwmsc.Rows[0]) : null); }
public Wmsc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wmsc wmsc = null; if (row != null) { wmsc = this.BuildFromRow(row); } return(wmsc); }
protected Wmsc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwmsc.AsEnumerable().SingleOrDefault(); Wmsc wmsc = null; if (row != null) { wmsc = this.BuildFromRow(row); } return(wmsc); }
public void Delete(Wmsc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwmsc.NewttblwmscRow(); Wmsc.BuildMinimalRow(ref row, record); this.dataSet.ttblwmsc.AddttblwmscRow((pdswmscDataSet.ttblwmscRow)row); } row.Delete(); this.SaveChanges(); }
public Wmsc Update(Wmsc 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.ttblwmsc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwmsc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Wmsc record) { Wmsc.UpdateRowFromWmsc(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Wmsc record) { this.repository.Delete(record); }
public Wmsc Update(Wmsc record) { return(this.repository.Update(record)); }
public Wmsc Insert(Wmsc record) { return(this.repository.Insert(record)); }
public void Delete(Wmsc record) { this.adapter.Delete(record); }
public Wmsc Update(Wmsc record) { return(this.adapter.Update(record)); }
public Wmsc Insert(Wmsc record) { return(this.adapter.Insert(record)); }