public Edsd BuildFromRow(DataRow row) { var returnRecord = Edsd.BuildEdsdFromRow(row); returnRecord = this.BuildExtraFromRow <Edsd>(returnRecord, row); return(returnRecord); }
public Edsd Insert(Edsd record) { DataRow row = this.dataSet.ttbledsd.NewttbledsdRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbledsd.AddttbledsdRow((pdsedsdDataSet.ttbledsdRow)row); this.SaveChanges(); return(this.dataSet.ttbledsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledsd.Rows[0]) : null); }
public Edsd GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Edsd edsd = null; if (row != null) { edsd = this.BuildFromRow(row); } return(edsd); }
protected Edsd Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbledsd.AsEnumerable().SingleOrDefault(); Edsd edsd = null; if (row != null) { edsd = this.BuildFromRow(row); } return(edsd); }
public void Delete(Edsd record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledsd.NewttbledsdRow(); Edsd.BuildMinimalRow(ref row, record); this.dataSet.ttbledsd.AddttbledsdRow((pdsedsdDataSet.ttbledsdRow)row); } row.Delete(); this.SaveChanges(); }
public Edsd Update(Edsd 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.ttbledsd.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledsd.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Edsd record) { Edsd.UpdateRowFromEdsd(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Edsd record) { this.adapter.Delete(record); }
public Edsd Update(Edsd record) { return(this.adapter.Update(record)); }
public Edsd Insert(Edsd record) { return(this.adapter.Insert(record)); }
public Edsd Insert(Edsd record) { return(this.repository.Insert(record)); }
public void Delete(Edsd record) { this.repository.Delete(record); }
public Edsd Update(Edsd record) { return(this.repository.Update(record)); }