public Vendaddr BuildFromRow(DataRow row) { var returnRecord = Vendaddr.BuildVendaddrFromRow(row); returnRecord = this.BuildExtraFromRow <Vendaddr>(returnRecord, row); return(returnRecord); }
public Vendaddr Insert(Vendaddr record) { DataRow row = this.dataSet.ttblvendaddr.NewttblvendaddrRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvendaddr.AddttblvendaddrRow((pdsvendaddrDataSet.ttblvendaddrRow)row); this.SaveChanges(); return(this.dataSet.ttblvendaddr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvendaddr.Rows[0]) : null); }
public Vendaddr GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Vendaddr vendaddr = null; if (row != null) { vendaddr = this.BuildFromRow(row); } return(vendaddr); }
protected Vendaddr Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvendaddr.AsEnumerable().SingleOrDefault(); Vendaddr vendaddr = null; if (row != null) { vendaddr = this.BuildFromRow(row); } return(vendaddr); }
private void DeleteUseRowID(Vendaddr record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvendaddr.NewttblvendaddrRow(); Vendaddr.BuildMinimalRow(ref row, record); this.dataSet.ttblvendaddr.AddttblvendaddrRow((pdsvendaddrDataSet.ttblvendaddrRow)row); } row.Delete(); this.SaveChanges(); }
public Vendaddr Update(Vendaddr record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblvendaddr.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvendaddr.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Vendaddr record) { Vendaddr.UpdateRowFromVendaddr(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Vendaddr record) { this.adapter.Delete(record); }
public Vendaddr Update(Vendaddr record) { return(this.adapter.Update(record)); }
public Vendaddr Insert(Vendaddr record) { return(this.adapter.Insert(record)); }
public void Delete(Vendaddr record) { this.repository.Delete(record); }
public Vendaddr Update(Vendaddr record) { return(this.repository.Update(record)); }
public Vendaddr Insert(Vendaddr record) { return(this.repository.Insert(record)); }