public Oeeha BuildFromRow(DataRow row) { var returnRecord = Oeeha.BuildOeehaFromRow(row); returnRecord = this.BuildExtraFromRow <Oeeha>(returnRecord, row); return(returnRecord); }
public Oeeha Insert(Oeeha record) { DataRow row = this.dataSet.ttbloeeha.NewttbloeehaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbloeeha.AddttbloeehaRow((pdsoeehaDataSet.ttbloeehaRow)row); this.SaveChanges(); return(this.dataSet.ttbloeeha.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeeha.Rows[0]) : null); }
public Oeeha GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Oeeha oeeha = null; if (row != null) { oeeha = this.BuildFromRow(row); } return(oeeha); }
protected Oeeha Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbloeeha.AsEnumerable().SingleOrDefault(); Oeeha oeeha = null; if (row != null) { oeeha = this.BuildFromRow(row); } return(oeeha); }
public void Delete(Oeeha record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbloeeha.NewttbloeehaRow(); Oeeha.BuildMinimalRow(ref row, record); this.dataSet.ttbloeeha.AddttbloeehaRow((pdsoeehaDataSet.ttbloeehaRow)row); } row.Delete(); this.SaveChanges(); }
public Oeeha Update(Oeeha 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.ttbloeeha.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbloeeha.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Oeeha record) { Oeeha.UpdateRowFromOeeha(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Oeeha record) { this.repository.Delete(record); }
public Oeeha Update(Oeeha record) { return(this.repository.Update(record)); }
public Oeeha Insert(Oeeha record) { return(this.repository.Insert(record)); }
public Oeeha Update(Oeeha record) { return(this.adapter.Update(record)); }
public Oeeha Insert(Oeeha record) { return(this.adapter.Insert(record)); }
public void Delete(Oeeha record) { this.adapter.Delete(record); }