public Barcodemst Insert(Barcodemst record) { DataRow row = this.dataSet.ttblbarcodemst.NewttblbarcodemstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblbarcodemst.AddttblbarcodemstRow((pdsbarcodemstDataSet.ttblbarcodemstRow)row); this.SaveChanges(); return this.dataSet.ttblbarcodemst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbarcodemst.Rows[0]) : null; }
public Barcodemst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Barcodemst barcodemst = null; if (row != null) { barcodemst = this.BuildFromRow(row); } return barcodemst; }
protected Barcodemst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblbarcodemst.AsEnumerable().SingleOrDefault(); Barcodemst barcodemst = null; if (row != null) { barcodemst = this.BuildFromRow(row); } return barcodemst; }
public void Delete(Barcodemst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblbarcodemst.NewttblbarcodemstRow(); Barcodemst.BuildMinimalRow(ref row, record); this.dataSet.ttblbarcodemst.AddttblbarcodemstRow((pdsbarcodemstDataSet.ttblbarcodemstRow)row); } row.Delete(); this.SaveChanges(); }
public Barcodemst Update(Barcodemst 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.ttblbarcodemst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblbarcodemst.Rows[0]) : null; } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return null; }
public void Delete(Barcodemst record) { this.adapter.Delete(record); }
public Barcodemst Update(Barcodemst record) { return(this.adapter.Update(record)); }
public Barcodemst Insert(Barcodemst record) { return(this.adapter.Insert(record)); }
public void Delete(Barcodemst record) { this.repository.Delete(record); }
public Barcodemst Update(Barcodemst record) { return(this.repository.Update(record)); }
public Barcodemst Insert(Barcodemst record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Barcodemst record) { Barcodemst.UpdateRowFromBarcodemst(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Barcodemst BuildFromRow(DataRow row) { var returnRecord = Barcodemst.BuildBarcodemstFromRow(row); returnRecord = this.BuildExtraFromRow<Barcodemst>(returnRecord, row); return returnRecord; }