public Wterah BuildFromRow(DataRow row) { var returnRecord = Wterah.BuildWterahFromRow(row); returnRecord = this.BuildExtraFromRow <Wterah>(returnRecord, row); return(returnRecord); }
public Wterah Insert(Wterah record) { DataRow row = this.dataSet.ttblwterah.NewttblwterahRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwterah.AddttblwterahRow((pdswterahDataSet.ttblwterahRow)row); this.SaveChanges(); return(this.dataSet.ttblwterah.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwterah.Rows[0]) : null); }
public Wterah GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wterah wterah = null; if (row != null) { wterah = this.BuildFromRow(row); } return(wterah); }
protected Wterah Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwterah.AsEnumerable().SingleOrDefault(); Wterah wterah = null; if (row != null) { wterah = this.BuildFromRow(row); } return(wterah); }
public void Delete(Wterah record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwterah.NewttblwterahRow(); Wterah.BuildMinimalRow(ref row, record); this.dataSet.ttblwterah.AddttblwterahRow((pdswterahDataSet.ttblwterahRow)row); } row.Delete(); this.SaveChanges(); }
public Wterah Update(Wterah 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.ttblwterah.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwterah.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Wterah record) { Wterah.UpdateRowFromWterah(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Wterah record) { this.repository.Delete(record); }
public Wterah Update(Wterah record) { return(this.repository.Update(record)); }
public Wterah Insert(Wterah record) { return(this.repository.Insert(record)); }
public void Delete(Wterah record) { this.adapter.Delete(record); }
public Wterah Update(Wterah record) { return(this.adapter.Update(record)); }
public Wterah Insert(Wterah record) { return(this.adapter.Insert(record)); }