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