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