public Palletdet BuildFromRow(DataRow row) { var returnRecord = Palletdet.BuildPalletdetFromRow(row); returnRecord = this.BuildExtraFromRow <Palletdet>(returnRecord, row); return(returnRecord); }
public Palletdet Insert(Palletdet record) { DataRow row = this.dataSet.ttblpalletdet.NewttblpalletdetRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpalletdet.AddttblpalletdetRow((pdspalletdetDataSet.ttblpalletdetRow)row); this.SaveChanges(); return(this.dataSet.ttblpalletdet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpalletdet.Rows[0]) : null); }
public Palletdet GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Palletdet palletdet = null; if (row != null) { palletdet = this.BuildFromRow(row); } return(palletdet); }
protected Palletdet Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpalletdet.AsEnumerable().SingleOrDefault(); Palletdet palletdet = null; if (row != null) { palletdet = this.BuildFromRow(row); } return(palletdet); }
public void Delete(Palletdet record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpalletdet.NewttblpalletdetRow(); Palletdet.BuildMinimalRow(ref row, record); this.dataSet.ttblpalletdet.AddttblpalletdetRow((pdspalletdetDataSet.ttblpalletdetRow)row); } row.Delete(); this.SaveChanges(); }
public Palletdet Update(Palletdet 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.ttblpalletdet.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpalletdet.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Palletdet record) { this.adapter.Delete(record); }
public Palletdet Update(Palletdet record) { return(this.adapter.Update(record)); }
public Palletdet Insert(Palletdet record) { return(this.adapter.Insert(record)); }
public void Delete(Palletdet record) { this.repository.Delete(record); }
public Palletdet Update(Palletdet record) { return(this.repository.Update(record)); }
public Palletdet Insert(Palletdet record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Palletdet record) { Palletdet.UpdateRowFromPalletdet(ref row, record); this.ExtraUpdateToRow(ref row, record); }