public Icswb BuildFromRow(DataRow row) { var returnRecord = Icswb.BuildIcswbFromRow(row); returnRecord = this.BuildExtraFromRow <Icswb>(returnRecord, row); return(returnRecord); }
public Icswb Insert(Icswb record) { DataRow row = this.dataSet.ttblicswb.NewttblicswbRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicswb.AddttblicswbRow((pdsicswbDataSet.ttblicswbRow)row); this.SaveChanges(); return(this.dataSet.ttblicswb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicswb.Rows[0]) : null); }
public Icswb GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Icswb icswb = null; if (row != null) { icswb = this.BuildFromRow(row); } return(icswb); }
protected Icswb Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblicswb.AsEnumerable().SingleOrDefault(); Icswb icswb = null; if (row != null) { icswb = this.BuildFromRow(row); } return(icswb); }
public void Delete(Icswb record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblicswb.NewttblicswbRow(); Icswb.BuildMinimalRow(ref row, record); this.dataSet.ttblicswb.AddttblicswbRow((pdsicswbDataSet.ttblicswbRow)row); } row.Delete(); this.SaveChanges(); }
public Icswb Update(Icswb record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblicswb.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicswb.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Icswb record) { Icswb.UpdateRowFromIcswb(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icswb record) { this.repository.Delete(record); }
public Icswb Update(Icswb record) { return(this.repository.Update(record)); }
public Icswb Insert(Icswb record) { return(this.repository.Insert(record)); }
public void Delete(Icswb record) { this.adapter.Delete(record); }
public Icswb Update(Icswb record) { return(this.adapter.Update(record)); }
public Icswb Insert(Icswb record) { return(this.adapter.Insert(record)); }