public Icsepa BuildFromRow(DataRow row) { var returnRecord = Icsepa.BuildIcsepaFromRow(row); returnRecord = this.BuildExtraFromRow <Icsepa>(returnRecord, row); return(returnRecord); }
public Icsepa Insert(Icsepa record) { DataRow row = this.dataSet.ttblicsepa.NewttblicsepaRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsepa.AddttblicsepaRow((pdsicsepaDataSet.ttblicsepaRow)row); this.SaveChanges(); return(this.dataSet.ttblicsepa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsepa.Rows[0]) : null); }
public Icsepa GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsepa icsepa = null; if (row != null) { icsepa = this.BuildFromRow(row); } return(icsepa); }
protected Icsepa Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsepa.AsEnumerable().SingleOrDefault(); Icsepa icsepa = null; if (row != null) { icsepa = this.BuildFromRow(row); } return(icsepa); }
public void Delete(Icsepa record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsepa.NewttblicsepaRow(); Icsepa.BuildMinimalRow(ref row, record); this.dataSet.ttblicsepa.AddttblicsepaRow((pdsicsepaDataSet.ttblicsepaRow)row); } row.Delete(); this.SaveChanges(); }
public Icsepa Update(Icsepa 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.ttblicsepa.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsepa.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icsepa record) { this.repository.Delete(record); }
public Icsepa Update(Icsepa record) { return(this.repository.Update(record)); }
public Icsepa Insert(Icsepa record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icsepa record) { Icsepa.UpdateRowFromIcsepa(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsepa record) { this.adapter.Delete(record); }
public Icsepa Update(Icsepa record) { return(this.adapter.Update(record)); }
public Icsepa Insert(Icsepa record) { return(this.adapter.Insert(record)); }