public Binmst BuildFromRow(DataRow row) { var returnRecord = Binmst.BuildBinmstFromRow(row); returnRecord = this.BuildExtraFromRow <Binmst>(returnRecord, row); return(returnRecord); }
public Binmst Insert(Binmst record) { DataRow row = this.dataSet.ttblbinmst.NewttblbinmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbinmst.AddttblbinmstRow((pdsbinmstDataSet.ttblbinmstRow)row); this.SaveChanges(); return(this.dataSet.ttblbinmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbinmst.Rows[0]) : null); }
public Binmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Binmst binmst = null; if (row != null) { binmst = this.BuildFromRow(row); } return(binmst); }
protected Binmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbinmst.AsEnumerable().SingleOrDefault(); Binmst binmst = null; if (row != null) { binmst = this.BuildFromRow(row); } return(binmst); }
public void Delete(Binmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbinmst.NewttblbinmstRow(); Binmst.BuildMinimalRow(ref row, record); this.dataSet.ttblbinmst.AddttblbinmstRow((pdsbinmstDataSet.ttblbinmstRow)row); } row.Delete(); this.SaveChanges(); }
public Binmst Update(Binmst 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.ttblbinmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbinmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Binmst Insert(Binmst record) { return(this.adapter.Insert(record)); }
public void Delete(Binmst record) { this.adapter.Delete(record); }
public Binmst Update(Binmst record) { return(this.adapter.Update(record)); }
public void UpdateToRow(ref DataRow row, Binmst record) { Binmst.UpdateRowFromBinmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Binmst record) { this.repository.Delete(record); }
public Binmst Update(Binmst record) { return(this.repository.Update(record)); }
public Binmst Insert(Binmst record) { return(this.repository.Insert(record)); }