public Rsao BuildFromRow(DataRow row) { var returnRecord = Rsao.BuildRsaoFromRow(row); returnRecord = this.BuildExtraFromRow <Rsao>(returnRecord, row); return(returnRecord); }
public Rsao Insert(Rsao record) { DataRow row = this.dataSet.ttblrsao.NewttblrsaoRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblrsao.AddttblrsaoRow((pdsrsaoDataSet.ttblrsaoRow)row); this.SaveChanges(); return(this.dataSet.ttblrsao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrsao.Rows[0]) : null); }
public Rsao GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Rsao rsao = null; if (row != null) { rsao = this.BuildFromRow(row); } return(rsao); }
protected Rsao Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblrsao.AsEnumerable().SingleOrDefault(); Rsao rsao = null; if (row != null) { rsao = this.BuildFromRow(row); } return(rsao); }
public void Delete(Rsao record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblrsao.NewttblrsaoRow(); Rsao.BuildMinimalRow(ref row, record); this.dataSet.ttblrsao.AddttblrsaoRow((pdsrsaoDataSet.ttblrsaoRow)row); } row.Delete(); this.SaveChanges(); }
public Rsao Update(Rsao 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.ttblrsao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblrsao.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Rsao Update(Rsao record) { return(this.repository.Update(record)); }
public Rsao Insert(Rsao record) { return(this.repository.Insert(record)); }
public void Delete(Rsao record) { this.repository.Delete(record); }
public void Delete(Rsao record) { this.adapter.Delete(record); }
public Rsao Update(Rsao record) { return(this.adapter.Update(record)); }
public Rsao Insert(Rsao record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Rsao record) { Rsao.UpdateRowFromRsao(ref row, record); this.ExtraUpdateToRow(ref row, record); }