public Dealph BuildFromRow(DataRow row) { var returnRecord = Dealph.BuildDealphFromRow(row); returnRecord = this.BuildExtraFromRow <Dealph>(returnRecord, row); return(returnRecord); }
public Dealph Insert(Dealph record) { DataRow row = this.dataSet.ttbldealph.NewttbldealphRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbldealph.AddttbldealphRow((pdsdealphDataSet.ttbldealphRow)row); this.SaveChanges(); return(this.dataSet.ttbldealph.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldealph.Rows[0]) : null); }
public Dealph GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Dealph dealph = null; if (row != null) { dealph = this.BuildFromRow(row); } return(dealph); }
protected Dealph Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbldealph.AsEnumerable().SingleOrDefault(); Dealph dealph = null; if (row != null) { dealph = this.BuildFromRow(row); } return(dealph); }
public void Delete(Dealph record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbldealph.NewttbldealphRow(); Dealph.BuildMinimalRow(ref row, record); this.dataSet.ttbldealph.AddttbldealphRow((pdsdealphDataSet.ttbldealphRow)row); } row.Delete(); this.SaveChanges(); }
public Dealph Update(Dealph 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.ttbldealph.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbldealph.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Dealph record) { Dealph.UpdateRowFromDealph(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Dealph record) { this.adapter.Delete(record); }
public Dealph Update(Dealph record) { return(this.adapter.Update(record)); }
public Dealph Insert(Dealph record) { return(this.adapter.Insert(record)); }
public void Delete(Dealph record) { this.repository.Delete(record); }
public Dealph Update(Dealph record) { return(this.repository.Update(record)); }
public Dealph Insert(Dealph record) { return(this.repository.Insert(record)); }