public Taxtabledtl BuildFromRow(DataRow row) { var returnRecord = Taxtabledtl.BuildTaxtabledtlFromRow(row); returnRecord = this.BuildExtraFromRow <Taxtabledtl>(returnRecord, row); return(returnRecord); }
public Taxtabledtl Insert(Taxtabledtl record) { DataRow row = this.dataSet.ttbltaxtabledtl.NewttbltaxtabledtlRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbltaxtabledtl.AddttbltaxtabledtlRow((pdstaxtabledtlDataSet.ttbltaxtabledtlRow)row); this.SaveChanges(); return(this.dataSet.ttbltaxtabledtl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltaxtabledtl.Rows[0]) : null); }
public Taxtabledtl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Taxtabledtl taxtabledtl = null; if (row != null) { taxtabledtl = this.BuildFromRow(row); } return(taxtabledtl); }
protected Taxtabledtl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbltaxtabledtl.AsEnumerable().SingleOrDefault(); Taxtabledtl taxtabledtl = null; if (row != null) { taxtabledtl = this.BuildFromRow(row); } return(taxtabledtl); }
public void Delete(Taxtabledtl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbltaxtabledtl.NewttbltaxtabledtlRow(); Taxtabledtl.BuildMinimalRow(ref row, record); this.dataSet.ttbltaxtabledtl.AddttbltaxtabledtlRow((pdstaxtabledtlDataSet.ttbltaxtabledtlRow)row); } row.Delete(); this.SaveChanges(); }
public Taxtabledtl Update(Taxtabledtl 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.ttbltaxtabledtl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbltaxtabledtl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Taxtabledtl record) { this.adapter.Delete(record); }
public Taxtabledtl Update(Taxtabledtl record) { return(this.adapter.Update(record)); }
public Taxtabledtl Insert(Taxtabledtl record) { return(this.adapter.Insert(record)); }
public void Delete(Taxtabledtl record) { this.repository.Delete(record); }
public Taxtabledtl Update(Taxtabledtl record) { return(this.repository.Update(record)); }
public Taxtabledtl Insert(Taxtabledtl record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Taxtabledtl record) { Taxtabledtl.UpdateRowFromTaxtabledtl(ref row, record); this.ExtraUpdateToRow(ref row, record); }