public Icsgn BuildFromRow(DataRow row) { var returnRecord = Icsgn.BuildIcsgnFromRow(row); returnRecord = this.BuildExtraFromRow <Icsgn>(returnRecord, row); return(returnRecord); }
public Icsgn Insert(Icsgn record) { DataRow row = this.dataSet.ttblicsgn.NewttblicsgnRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsgn.AddttblicsgnRow((pdsicsgnDataSet.ttblicsgnRow)row); this.SaveChanges(); return(this.dataSet.ttblicsgn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsgn.Rows[0]) : null); }
public Icsgn GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsgn icsgn = null; if (row != null) { icsgn = this.BuildFromRow(row); } return(icsgn); }
protected Icsgn Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsgn.AsEnumerable().SingleOrDefault(); Icsgn icsgn = null; if (row != null) { icsgn = this.BuildFromRow(row); } return(icsgn); }
public void Delete(Icsgn record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsgn.NewttblicsgnRow(); Icsgn.BuildMinimalRow(ref row, record); this.dataSet.ttblicsgn.AddttblicsgnRow((pdsicsgnDataSet.ttblicsgnRow)row); } row.Delete(); this.SaveChanges(); }
public Icsgn Update(Icsgn 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.ttblicsgn.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsgn.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icsgn record) { Icsgn.UpdateRowFromIcsgn(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsgn record) { this.adapter.Delete(record); }
public Icsgn Update(Icsgn record) { return(this.adapter.Update(record)); }
public Icsgn Insert(Icsgn record) { return(this.adapter.Insert(record)); }
public void Delete(Icsgn record) { this.repository.Delete(record); }
public Icsgn Update(Icsgn record) { return(this.repository.Update(record)); }
public Icsgn Insert(Icsgn record) { return(this.repository.Insert(record)); }