public Iceti BuildFromRow(DataRow row) { var returnRecord = Iceti.BuildIcetiFromRow(row); returnRecord = this.BuildExtraFromRow <Iceti>(returnRecord, row); return(returnRecord); }
public Iceti Insert(Iceti record) { DataRow row = this.dataSet.ttbliceti.NewttblicetiRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttbliceti.AddttblicetiRow((pdsicetiDataSet.ttblicetiRow)row); this.SaveChanges(); return(this.dataSet.ttbliceti.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceti.Rows[0]) : null); }
public Iceti GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Iceti iceti = null; if (row != null) { iceti = this.BuildFromRow(row); } return(iceti); }
protected Iceti Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttbliceti.AsEnumerable().SingleOrDefault(); Iceti iceti = null; if (row != null) { iceti = this.BuildFromRow(row); } return(iceti); }
private void DeleteUseRowID(Iceti record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttbliceti.NewttblicetiRow(); Iceti.BuildMinimalRow(ref row, record); this.dataSet.ttbliceti.AddttblicetiRow((pdsicetiDataSet.ttblicetiRow)row); } row.Delete(); this.SaveChanges(); }
public Iceti Update(Iceti record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttbliceti.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttbliceti.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Iceti record) { this.adapter.Delete(record); }
public Iceti Update(Iceti record) { return(this.adapter.Update(record)); }
public Iceti Insert(Iceti record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Iceti record) { Iceti.UpdateRowFromIceti(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Iceti record) { this.repository.Delete(record); }
public Iceti Update(Iceti record) { return(this.repository.Update(record)); }
public Iceti Insert(Iceti record) { return(this.repository.Insert(record)); }