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