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