public Taxtable BuildFromRow(DataRow row) { var returnRecord = Taxtable.BuildTaxtableFromRow(row); returnRecord = this.BuildExtraFromRow <Taxtable>(returnRecord, row); return(returnRecord); }
public Taxtable Insert(Taxtable record) { DataRow row = this.dataSet.ttbltaxtable.NewttbltaxtableRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbltaxtable.AddttbltaxtableRow((pdstaxtableDataSet.ttbltaxtableRow)row); this.SaveChanges(); return(this.dataSet.ttbltaxtable.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltaxtable.Rows[0]) : null); }
public Taxtable GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Taxtable taxtable = null; if (row != null) { taxtable = this.BuildFromRow(row); } return(taxtable); }
protected Taxtable Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbltaxtable.AsEnumerable().SingleOrDefault(); Taxtable taxtable = null; if (row != null) { taxtable = this.BuildFromRow(row); } return(taxtable); }
private void DeleteUseRowID(Taxtable record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbltaxtable.NewttbltaxtableRow(); Taxtable.BuildMinimalRow(ref row, record); this.dataSet.ttbltaxtable.AddttbltaxtableRow((pdstaxtableDataSet.ttbltaxtableRow)row); } row.Delete(); this.SaveChanges(); }
public Taxtable Update(Taxtable 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.ttbltaxtable.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltaxtable.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Taxtable record) { this.repository.Delete(record); }
public Taxtable Update(Taxtable record) { return(this.repository.Update(record)); }
public Taxtable Insert(Taxtable record) { return(this.repository.Insert(record)); }
public Taxtable Insert(Taxtable record) { return(this.adapter.Insert(record)); }
public void Delete(Taxtable record) { this.adapter.Delete(record); }
public Taxtable Update(Taxtable record) { return(this.adapter.Update(record)); }
public void UpdateToRow(ref DataRow row, Taxtable record) { Taxtable.UpdateRowFromTaxtable(ref row, record); this.ExtraUpdateToRow(ref row, record); }