public Icsew BuildFromRow(DataRow row) { var returnRecord = Icsew.BuildIcsewFromRow(row); returnRecord = this.BuildExtraFromRow <Icsew>(returnRecord, row); return(returnRecord); }
public Icsew Insert(Icsew record) { DataRow row = this.dataSet.ttblicsew.NewttblicsewRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicsew.AddttblicsewRow((pdsicsewDataSet.ttblicsewRow)row); this.SaveChanges(); return(this.dataSet.ttblicsew.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsew.Rows[0]) : null); }
public Icsew GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icsew icsew = null; if (row != null) { icsew = this.BuildFromRow(row); } return(icsew); }
protected Icsew Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicsew.AsEnumerable().SingleOrDefault(); Icsew icsew = null; if (row != null) { icsew = this.BuildFromRow(row); } return(icsew); }
public void Delete(Icsew record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicsew.NewttblicsewRow(); Icsew.BuildMinimalRow(ref row, record); this.dataSet.ttblicsew.AddttblicsewRow((pdsicsewDataSet.ttblicsewRow)row); } row.Delete(); this.SaveChanges(); }
public Icsew Update(Icsew 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.ttblicsew.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicsew.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Icsew Insert(Icsew record) { return(this.repository.Insert(record)); }
public void Delete(Icsew record) { this.repository.Delete(record); }
public Icsew Update(Icsew record) { return(this.repository.Update(record)); }
public void UpdateToRow(ref DataRow row, Icsew record) { Icsew.UpdateRowFromIcsew(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icsew record) { this.adapter.Delete(record); }
public Icsew Update(Icsew record) { return(this.adapter.Update(record)); }
public Icsew Insert(Icsew record) { return(this.adapter.Insert(record)); }