public Icses BuildFromRow(DataRow row) { var returnRecord = Icses.BuildIcsesFromRow(row); returnRecord = this.BuildExtraFromRow <Icses>(returnRecord, row); return(returnRecord); }
public Icses Insert(Icses record) { DataRow row = this.dataSet.ttblicses.NewttblicsesRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicses.AddttblicsesRow((pdsicsesDataSet.ttblicsesRow)row); this.SaveChanges(); return(this.dataSet.ttblicses.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicses.Rows[0]) : null); }
public Icses GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icses icses = null; if (row != null) { icses = this.BuildFromRow(row); } return(icses); }
protected Icses Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicses.AsEnumerable().SingleOrDefault(); Icses icses = null; if (row != null) { icses = this.BuildFromRow(row); } return(icses); }
private void DeleteUseRowID(Icses record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicses.NewttblicsesRow(); Icses.BuildMinimalRow(ref row, record); this.dataSet.ttblicses.AddttblicsesRow((pdsicsesDataSet.ttblicsesRow)row); } row.Delete(); this.SaveChanges(); }
public Icses Update(Icses 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.ttblicses.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicses.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icses record) { Icses.UpdateRowFromIcses(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icses record) { this.repository.Delete(record); }
public Icses Update(Icses record) { return(this.repository.Update(record)); }
public Icses Insert(Icses record) { return(this.repository.Insert(record)); }
public Icses Update(Icses record) { return(this.adapter.Update(record)); }
public Icses Insert(Icses record) { return(this.adapter.Insert(record)); }
public void Delete(Icses record) { this.adapter.Delete(record); }