public Apebc BuildFromRow(DataRow row) { var returnRecord = Apebc.BuildApebcFromRow(row); returnRecord = this.BuildExtraFromRow <Apebc>(returnRecord, row); return(returnRecord); }
public Apebc Insert(Apebc record) { DataRow row = this.dataSet.ttblapebc.NewttblapebcRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblapebc.AddttblapebcRow((pdsapebcDataSet.ttblapebcRow)row); this.SaveChanges(); return(this.dataSet.ttblapebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebc.Rows[0]) : null); }
public Apebc GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Apebc apebc = null; if (row != null) { apebc = this.BuildFromRow(row); } return(apebc); }
protected Apebc Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblapebc.AsEnumerable().SingleOrDefault(); Apebc apebc = null; if (row != null) { apebc = this.BuildFromRow(row); } return(apebc); }
public void Delete(Apebc record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblapebc.NewttblapebcRow(); Apebc.BuildMinimalRow(ref row, record); this.dataSet.ttblapebc.AddttblapebcRow((pdsapebcDataSet.ttblapebcRow)row); } row.Delete(); this.SaveChanges(); }
public Apebc Update(Apebc 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.ttblapebc.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblapebc.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Apebc record) { this.adapter.Delete(record); }
public Apebc Update(Apebc record) { return(this.adapter.Update(record)); }
public Apebc Insert(Apebc record) { return(this.adapter.Insert(record)); }
public void Delete(Apebc record) { this.repository.Delete(record); }
public Apebc Update(Apebc record) { return(this.repository.Update(record)); }
public Apebc Insert(Apebc record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Apebc record) { Apebc.UpdateRowFromApebc(ref row, record); this.ExtraUpdateToRow(ref row, record); }