public PvShoplist Insert(PvShoplist record) { DataRow row = this.dataSet.ttblpv_shoplist.Newttblpv_shoplistRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpv_shoplist.Addttblpv_shoplistRow((pdspv_shoplistDataSet.ttblpv_shoplistRow)row); this.SaveChanges(); return this.dataSet.ttblpv_shoplist.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_shoplist.Rows[0]) : null; }
public PvShoplist GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); PvShoplist pvShoplist = null; if (row != null) { pvShoplist = this.BuildFromRow(row); } return pvShoplist; }
protected PvShoplist Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblpv_shoplist.AsEnumerable().SingleOrDefault(); PvShoplist pvShoplist = null; if (row != null) { pvShoplist = this.BuildFromRow(row); } return pvShoplist; }
public void Delete(PvShoplist record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblpv_shoplist.Newttblpv_shoplistRow(); PvShoplist.BuildMinimalRow(ref row, record); this.dataSet.ttblpv_shoplist.Addttblpv_shoplistRow((pdspv_shoplistDataSet.ttblpv_shoplistRow)row); } row.Delete(); this.SaveChanges(); }
public PvShoplist Update(PvShoplist record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return this.dataSet.ttblpv_shoplist.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpv_shoplist.Rows[0]) : null; } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return null; }
public void Delete(PvShoplist record) { this.adapter.Delete(record); }
public PvShoplist Update(PvShoplist record) { return(this.adapter.Update(record)); }
public PvShoplist Insert(PvShoplist record) { return(this.adapter.Insert(record)); }
public void Delete(PvShoplist record) { this.repository.Delete(record); }
public PvShoplist Update(PvShoplist record) { return(this.repository.Update(record)); }
public PvShoplist Insert(PvShoplist record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, PvShoplist record) { PvShoplist.UpdateRowFromPvShoplist(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public PvShoplist BuildFromRow(DataRow row) { var returnRecord = PvShoplist.BuildPvShoplistFromRow(row); returnRecord = this.BuildExtraFromRow<PvShoplist>(returnRecord, row); return returnRecord; }