public Iceat BuildFromRow(DataRow row) { var returnRecord = Iceat.BuildIceatFromRow(row); returnRecord = this.BuildExtraFromRow <Iceat>(returnRecord, row); return(returnRecord); }
public Iceat Insert(Iceat record) { DataRow row = this.dataSet.ttbliceat.NewttbliceatRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbliceat.AddttbliceatRow((pdsiceatDataSet.ttbliceatRow)row); this.SaveChanges(); return(this.dataSet.ttbliceat.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceat.Rows[0]) : null); }
public Iceat GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Iceat iceat = null; if (row != null) { iceat = this.BuildFromRow(row); } return(iceat); }
protected Iceat Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbliceat.AsEnumerable().SingleOrDefault(); Iceat iceat = null; if (row != null) { iceat = this.BuildFromRow(row); } return(iceat); }
public void Delete(Iceat record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbliceat.NewttbliceatRow(); Iceat.BuildMinimalRow(ref row, record); this.dataSet.ttbliceat.AddttbliceatRow((pdsiceatDataSet.ttbliceatRow)row); } row.Delete(); this.SaveChanges(); }
public Iceat Update(Iceat 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.ttbliceat.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceat.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Iceat record) { Iceat.UpdateRowFromIceat(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Iceat Insert(Iceat record) { return(this.adapter.Insert(record)); }
public void Delete(Iceat record) { this.adapter.Delete(record); }
public Iceat Update(Iceat record) { return(this.adapter.Update(record)); }
public void Delete(Iceat record) { this.repository.Delete(record); }
public Iceat Update(Iceat record) { return(this.repository.Update(record)); }
public Iceat Insert(Iceat record) { return(this.repository.Insert(record)); }