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