public Icsw BuildFromRow(DataRow row) { var returnRecord = Icsw.BuildIcswFromRow(row); returnRecord = this.BuildExtraFromRow <Icsw>(returnRecord, row); return(returnRecord); }
public Icsw Insert(Icsw record) { DataRow row = this.dataSet.ttblicsw.NewttblicswRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsw.AddttblicswRow((pdsicswDataSet.ttblicswRow)row); this.SaveChanges(); return(this.dataSet.ttblicsw.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsw.Rows[0]) : null); }
public Icsw GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Icsw icsw = null; if (row != null) { icsw = this.BuildFromRow(row); } return(icsw); }
protected Icsw Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblicsw.AsEnumerable().SingleOrDefault(); Icsw icsw = null; if (row != null) { icsw = this.BuildFromRow(row); } return(icsw); }
private void DeleteUseRowID(Icsw record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblicsw.NewttblicswRow(); Icsw.BuildMinimalRow(ref row, record); this.dataSet.ttblicsw.AddttblicswRow((pdsicswDataSet.ttblicswRow)row); } row.Delete(); this.SaveChanges(); }
public Icsw Update(Icsw record) { var row = this.GetRowByRowpointer(record.rowpointer, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblicsw.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsw.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icsw record) { this.adapter.Delete(record); }
public Icsw Update(Icsw record) { return(this.adapter.Update(record)); }
public Icsw Insert(Icsw record) { return(this.adapter.Insert(record)); }
public void Delete(Icsw record) { this.repository.Delete(record); }
public Icsw Update(Icsw record) { return(this.repository.Update(record)); }
public Icsw Insert(Icsw record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icsw record) { Icsw.UpdateRowFromIcsw(ref row, record); this.ExtraUpdateToRow(ref row, record); }