public Poao BuildFromRow(DataRow row) { var returnRecord = Poao.BuildPoaoFromRow(row); returnRecord = this.BuildExtraFromRow <Poao>(returnRecord, row); return(returnRecord); }
public Poao Insert(Poao record) { DataRow row = this.dataSet.ttblpoao.NewttblpoaoRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblpoao.AddttblpoaoRow((pdspoaoDataSet.ttblpoaoRow)row); this.SaveChanges(); return(this.dataSet.ttblpoao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoao.Rows[0]) : null); }
public Poao GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Poao poao = null; if (row != null) { poao = this.BuildFromRow(row); } return(poao); }
protected Poao Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblpoao.AsEnumerable().SingleOrDefault(); Poao poao = null; if (row != null) { poao = this.BuildFromRow(row); } return(poao); }
public void Delete(Poao record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblpoao.NewttblpoaoRow(); Poao.BuildMinimalRow(ref row, record); this.dataSet.ttblpoao.AddttblpoaoRow((pdspoaoDataSet.ttblpoaoRow)row); } row.Delete(); this.SaveChanges(); }
public Poao Update(Poao 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.ttblpoao.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblpoao.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Poao record) { Poao.UpdateRowFromPoao(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Poao record) { this.adapter.Delete(record); }
public Poao Update(Poao record) { return(this.adapter.Update(record)); }
public Poao Insert(Poao record) { return(this.adapter.Insert(record)); }
public Poao Insert(Poao record) { return(this.repository.Insert(record)); }
public void Delete(Poao record) { this.repository.Delete(record); }
public Poao Update(Poao record) { return(this.repository.Update(record)); }