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