public Iceaa BuildFromRow(DataRow row) { var returnRecord = Iceaa.BuildIceaaFromRow(row); returnRecord = this.BuildExtraFromRow <Iceaa>(returnRecord, row); return(returnRecord); }
public Iceaa Insert(Iceaa record) { DataRow row = this.dataSet.ttbliceaa.NewttbliceaaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbliceaa.AddttbliceaaRow((pdsiceaaDataSet.ttbliceaaRow)row); this.SaveChanges(); return(this.dataSet.ttbliceaa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceaa.Rows[0]) : null); }
public Iceaa GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Iceaa iceaa = null; if (row != null) { iceaa = this.BuildFromRow(row); } return(iceaa); }
protected Iceaa Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbliceaa.AsEnumerable().SingleOrDefault(); Iceaa iceaa = null; if (row != null) { iceaa = this.BuildFromRow(row); } return(iceaa); }
public void Delete(Iceaa record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbliceaa.NewttbliceaaRow(); Iceaa.BuildMinimalRow(ref row, record); this.dataSet.ttbliceaa.AddttbliceaaRow((pdsiceaaDataSet.ttbliceaaRow)row); } row.Delete(); this.SaveChanges(); }
public Iceaa Update(Iceaa 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.ttbliceaa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceaa.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Iceaa record) { Iceaa.UpdateRowFromIceaa(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Iceaa record) { this.adapter.Delete(record); }
public Iceaa Update(Iceaa record) { return(this.adapter.Update(record)); }
public Iceaa Insert(Iceaa record) { return(this.adapter.Insert(record)); }
public void Delete(Iceaa record) { this.repository.Delete(record); }
public Iceaa Update(Iceaa record) { return(this.repository.Update(record)); }
public Iceaa Insert(Iceaa record) { return(this.repository.Insert(record)); }