public Oeehcx BuildFromRow(DataRow row) { var returnRecord = Oeehcx.BuildOeehcxFromRow(row); returnRecord = this.BuildExtraFromRow <Oeehcx>(returnRecord, row); return(returnRecord); }
public Oeehcx Insert(Oeehcx record) { DataRow row = this.dataSet.ttbloeehcx.NewttbloeehcxRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeehcx.AddttbloeehcxRow((pdsoeehcxDataSet.ttbloeehcxRow)row); this.SaveChanges(); return(this.dataSet.ttbloeehcx.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeehcx.Rows[0]) : null); }
public Oeehcx GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeehcx oeehcx = null; if (row != null) { oeehcx = this.BuildFromRow(row); } return(oeehcx); }
protected Oeehcx Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeehcx.AsEnumerable().SingleOrDefault(); Oeehcx oeehcx = null; if (row != null) { oeehcx = this.BuildFromRow(row); } return(oeehcx); }
public void Delete(Oeehcx record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeehcx.NewttbloeehcxRow(); Oeehcx.BuildMinimalRow(ref row, record); this.dataSet.ttbloeehcx.AddttbloeehcxRow((pdsoeehcxDataSet.ttbloeehcxRow)row); } row.Delete(); this.SaveChanges(); }
public Oeehcx Update(Oeehcx 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.ttbloeehcx.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeehcx.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Oeehcx record) { Oeehcx.UpdateRowFromOeehcx(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Oeehcx record) { this.adapter.Delete(record); }
public Oeehcx Update(Oeehcx record) { return(this.adapter.Update(record)); }
public Oeehcx Insert(Oeehcx record) { return(this.adapter.Insert(record)); }
public Oeehcx Insert(Oeehcx record) { return(this.repository.Insert(record)); }
public void Delete(Oeehcx record) { this.repository.Delete(record); }
public Oeehcx Update(Oeehcx record) { return(this.repository.Update(record)); }