public ProdStgMst BuildFromRow(DataRow row) { var returnRecord = ProdStgMst.BuildProdStgMstFromRow(row); returnRecord = this.BuildExtraFromRow <ProdStgMst>(returnRecord, row); return(returnRecord); }
public ProdStgMst Insert(ProdStgMst record) { DataRow row = this.dataSet.ttblprod_stg_mst.Newttblprod_stg_mstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblprod_stg_mst.Addttblprod_stg_mstRow((pdsprod_stg_mstDataSet.ttblprod_stg_mstRow)row); this.SaveChanges(); return(this.dataSet.ttblprod_stg_mst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblprod_stg_mst.Rows[0]) : null); }
public ProdStgMst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); ProdStgMst prodStgMst = null; if (row != null) { prodStgMst = this.BuildFromRow(row); } return(prodStgMst); }
protected ProdStgMst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblprod_stg_mst.AsEnumerable().SingleOrDefault(); ProdStgMst prodStgMst = null; if (row != null) { prodStgMst = this.BuildFromRow(row); } return(prodStgMst); }
public void Delete(ProdStgMst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblprod_stg_mst.Newttblprod_stg_mstRow(); ProdStgMst.BuildMinimalRow(ref row, record); this.dataSet.ttblprod_stg_mst.Addttblprod_stg_mstRow((pdsprod_stg_mstDataSet.ttblprod_stg_mstRow)row); } row.Delete(); this.SaveChanges(); }
public ProdStgMst Update(ProdStgMst 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.ttblprod_stg_mst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblprod_stg_mst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, ProdStgMst record) { ProdStgMst.UpdateRowFromProdStgMst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public ProdStgMst Update(ProdStgMst record) { return(this.adapter.Update(record)); }
public ProdStgMst Insert(ProdStgMst record) { return(this.adapter.Insert(record)); }
public void Delete(ProdStgMst record) { this.adapter.Delete(record); }
public void Delete(ProdStgMst record) { this.repository.Delete(record); }
public ProdStgMst Update(ProdStgMst record) { return(this.repository.Update(record)); }
public ProdStgMst Insert(ProdStgMst record) { return(this.repository.Insert(record)); }