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