public Iceam BuildFromRow(DataRow row) { var returnRecord = Iceam.BuildIceamFromRow(row); returnRecord = this.BuildExtraFromRow <Iceam>(returnRecord, row); return(returnRecord); }
public Iceam Insert(Iceam record) { DataRow row = this.dataSet.ttbliceam.NewttbliceamRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbliceam.AddttbliceamRow((pdsiceamDataSet.ttbliceamRow)row); this.SaveChanges(); return(this.dataSet.ttbliceam.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceam.Rows[0]) : null); }
public Iceam GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Iceam iceam = null; if (row != null) { iceam = this.BuildFromRow(row); } return(iceam); }
protected Iceam Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbliceam.AsEnumerable().SingleOrDefault(); Iceam iceam = null; if (row != null) { iceam = this.BuildFromRow(row); } return(iceam); }
public void Delete(Iceam record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbliceam.NewttbliceamRow(); Iceam.BuildMinimalRow(ref row, record); this.dataSet.ttbliceam.AddttbliceamRow((pdsiceamDataSet.ttbliceamRow)row); } row.Delete(); this.SaveChanges(); }
public Iceam Update(Iceam 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.ttbliceam.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceam.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Iceam record) { Iceam.UpdateRowFromIceam(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Iceam Insert(Iceam record) { return(this.adapter.Insert(record)); }
public void Delete(Iceam record) { this.adapter.Delete(record); }
public Iceam Update(Iceam record) { return(this.adapter.Update(record)); }
public void Delete(Iceam record) { this.repository.Delete(record); }
public Iceam Update(Iceam record) { return(this.repository.Update(record)); }
public Iceam Insert(Iceam record) { return(this.repository.Insert(record)); }