public Venddetail BuildFromRow(DataRow row) { var returnRecord = Venddetail.BuildVenddetailFromRow(row); returnRecord = this.BuildExtraFromRow <Venddetail>(returnRecord, row); return(returnRecord); }
public Venddetail Insert(Venddetail record) { DataRow row = this.dataSet.ttblvenddetail.NewttblvenddetailRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvenddetail.AddttblvenddetailRow((pdsvenddetailDataSet.ttblvenddetailRow)row); this.SaveChanges(); return(this.dataSet.ttblvenddetail.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvenddetail.Rows[0]) : null); }
public Venddetail GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Venddetail venddetail = null; if (row != null) { venddetail = this.BuildFromRow(row); } return(venddetail); }
protected Venddetail Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvenddetail.AsEnumerable().SingleOrDefault(); Venddetail venddetail = null; if (row != null) { venddetail = this.BuildFromRow(row); } return(venddetail); }
public void Delete(Venddetail record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvenddetail.NewttblvenddetailRow(); Venddetail.BuildMinimalRow(ref row, record); this.dataSet.ttblvenddetail.AddttblvenddetailRow((pdsvenddetailDataSet.ttblvenddetailRow)row); } row.Delete(); this.SaveChanges(); }
public Venddetail Update(Venddetail 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.ttblvenddetail.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvenddetail.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Venddetail record) { this.repository.Delete(record); }
public Venddetail Update(Venddetail record) { return(this.repository.Update(record)); }
public Venddetail Insert(Venddetail record) { return(this.repository.Insert(record)); }
public void Delete(Venddetail record) { this.adapter.Delete(record); }
public Venddetail Update(Venddetail record) { return(this.adapter.Update(record)); }
public Venddetail Insert(Venddetail record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Venddetail record) { Venddetail.UpdateRowFromVenddetail(ref row, record); this.ExtraUpdateToRow(ref row, record); }