public Edie BuildFromRow(DataRow row) { var returnRecord = Edie.BuildEdieFromRow(row); returnRecord = this.BuildExtraFromRow <Edie>(returnRecord, row); return(returnRecord); }
public Edie Insert(Edie record) { DataRow row = this.dataSet.ttbledie.NewttbledieRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbledie.AddttbledieRow((pdsedieDataSet.ttbledieRow)row); this.SaveChanges(); return(this.dataSet.ttbledie.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledie.Rows[0]) : null); }
public Edie GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Edie edie = null; if (row != null) { edie = this.BuildFromRow(row); } return(edie); }
protected Edie Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbledie.AsEnumerable().SingleOrDefault(); Edie edie = null; if (row != null) { edie = this.BuildFromRow(row); } return(edie); }
public void Delete(Edie record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbledie.NewttbledieRow(); Edie.BuildMinimalRow(ref row, record); this.dataSet.ttbledie.AddttbledieRow((pdsedieDataSet.ttbledieRow)row); } row.Delete(); this.SaveChanges(); }
public Edie Update(Edie 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.ttbledie.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbledie.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Edie record) { this.adapter.Delete(record); }
public Edie Update(Edie record) { return(this.adapter.Update(record)); }
public Edie Insert(Edie record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Edie record) { Edie.UpdateRowFromEdie(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Edie record) { this.repository.Delete(record); }
public Edie Update(Edie record) { return(this.repository.Update(record)); }
public Edie Insert(Edie record) { return(this.repository.Insert(record)); }