public Icets BuildFromRow(DataRow row) { var returnRecord = Icets.BuildIcetsFromRow(row); returnRecord = this.BuildExtraFromRow <Icets>(returnRecord, row); return(returnRecord); }
public Icets Insert(Icets record) { DataRow row = this.dataSet.ttblicets.NewttblicetsRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblicets.AddttblicetsRow((pdsicetsDataSet.ttblicetsRow)row); this.SaveChanges(); return(this.dataSet.ttblicets.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicets.Rows[0]) : null); }
public Icets GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Icets icets = null; if (row != null) { icets = this.BuildFromRow(row); } return(icets); }
protected Icets Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblicets.AsEnumerable().SingleOrDefault(); Icets icets = null; if (row != null) { icets = this.BuildFromRow(row); } return(icets); }
public void Delete(Icets record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblicets.NewttblicetsRow(); Icets.BuildMinimalRow(ref row, record); this.dataSet.ttblicets.AddttblicetsRow((pdsicetsDataSet.ttblicetsRow)row); } row.Delete(); this.SaveChanges(); }
public Icets Update(Icets 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.ttblicets.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblicets.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Icets record) { this.repository.Delete(record); }
public Icets Update(Icets record) { return(this.repository.Update(record)); }
public Icets Insert(Icets record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Icets record) { Icets.UpdateRowFromIcets(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Icets record) { this.adapter.Delete(record); }
public Icets Update(Icets record) { return(this.adapter.Update(record)); }
public Icets Insert(Icets record) { return(this.adapter.Insert(record)); }