public InvAdj BuildFromRow(DataRow row) { var returnRecord = InvAdj.BuildInvAdjFromRow(row); returnRecord = this.BuildExtraFromRow <InvAdj>(returnRecord, row); return(returnRecord); }
public InvAdj Insert(InvAdj record) { DataRow row = this.dataSet.ttblinv_adj.Newttblinv_adjRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblinv_adj.Addttblinv_adjRow((pdsinv_adjDataSet.ttblinv_adjRow)row); this.SaveChanges(); return(this.dataSet.ttblinv_adj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblinv_adj.Rows[0]) : null); }
public InvAdj GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); InvAdj invAdj = null; if (row != null) { invAdj = this.BuildFromRow(row); } return(invAdj); }
protected InvAdj Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblinv_adj.AsEnumerable().SingleOrDefault(); InvAdj invAdj = null; if (row != null) { invAdj = this.BuildFromRow(row); } return(invAdj); }
public void Delete(InvAdj record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblinv_adj.Newttblinv_adjRow(); InvAdj.BuildMinimalRow(ref row, record); this.dataSet.ttblinv_adj.Addttblinv_adjRow((pdsinv_adjDataSet.ttblinv_adjRow)row); } row.Delete(); this.SaveChanges(); }
public InvAdj Update(InvAdj 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.ttblinv_adj.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblinv_adj.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(InvAdj record) { this.adapter.Delete(record); }
public InvAdj Update(InvAdj record) { return(this.adapter.Update(record)); }
public InvAdj Insert(InvAdj record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, InvAdj record) { InvAdj.UpdateRowFromInvAdj(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public InvAdj Update(InvAdj record) { return(this.repository.Update(record)); }
public InvAdj Insert(InvAdj record) { return(this.repository.Insert(record)); }
public void Delete(InvAdj record) { this.repository.Delete(record); }