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