public Esbnoun BuildFromRow(DataRow row) { var returnRecord = Esbnoun.BuildEsbnounFromRow(row); returnRecord = this.BuildExtraFromRow <Esbnoun>(returnRecord, row); return(returnRecord); }
public Esbnoun Insert(Esbnoun record) { DataRow row = this.dataSet.ttblesbnoun.NewttblesbnounRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblesbnoun.AddttblesbnounRow((pdsesbnounDataSet.ttblesbnounRow)row); this.SaveChanges(); return(this.dataSet.ttblesbnoun.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblesbnoun.Rows[0]) : null); }
public Esbnoun GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Esbnoun esbnoun = null; if (row != null) { esbnoun = this.BuildFromRow(row); } return(esbnoun); }
protected Esbnoun Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblesbnoun.AsEnumerable().SingleOrDefault(); Esbnoun esbnoun = null; if (row != null) { esbnoun = this.BuildFromRow(row); } return(esbnoun); }
public void Delete(Esbnoun record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblesbnoun.NewttblesbnounRow(); Esbnoun.BuildMinimalRow(ref row, record); this.dataSet.ttblesbnoun.AddttblesbnounRow((pdsesbnounDataSet.ttblesbnounRow)row); } row.Delete(); this.SaveChanges(); }
public Esbnoun Update(Esbnoun 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.ttblesbnoun.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblesbnoun.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Esbnoun record) { this.adapter.Delete(record); }
public Esbnoun Update(Esbnoun record) { return(this.adapter.Update(record)); }
public Esbnoun Insert(Esbnoun record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Esbnoun record) { Esbnoun.UpdateRowFromEsbnoun(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Esbnoun Insert(Esbnoun record) { return(this.repository.Insert(record)); }
public void Delete(Esbnoun record) { this.repository.Delete(record); }
public Esbnoun Update(Esbnoun record) { return(this.repository.Update(record)); }