Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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();
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 public void Delete(PvShoplist record)
 {
     this.adapter.Delete(record);
 }
Esempio n. 7
0
 public PvShoplist Update(PvShoplist record)
 {
     return(this.adapter.Update(record));
 }
Esempio n. 8
0
 public PvShoplist Insert(PvShoplist record)
 {
     return(this.adapter.Insert(record));
 }
Esempio n. 9
0
 public void Delete(PvShoplist record)
 {
     this.repository.Delete(record);
 }
Esempio n. 10
0
 public PvShoplist Update(PvShoplist record)
 {
     return(this.repository.Update(record));
 }
Esempio n. 11
0
 public PvShoplist Insert(PvShoplist record)
 {
     return(this.repository.Insert(record));
 }
Esempio n. 12
0
 public void UpdateToRow(ref DataRow row, PvShoplist record)
 {
    PvShoplist.UpdateRowFromPvShoplist(ref row, record);
    this.ExtraUpdateToRow(ref row, record);
 }
Esempio n. 13
0
 public PvShoplist BuildFromRow(DataRow row)
 {
    var returnRecord = PvShoplist.BuildPvShoplistFromRow(row);
    returnRecord = this.BuildExtraFromRow<PvShoplist>(returnRecord, row);
    return returnRecord;
 }