public Wlel BuildFromRow(DataRow row) { var returnRecord = Wlel.BuildWlelFromRow(row); returnRecord = this.BuildExtraFromRow <Wlel>(returnRecord, row); return(returnRecord); }
public Wlel Insert(Wlel record) { DataRow row = this.dataSet.ttblwlel.NewttblwlelRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwlel.AddttblwlelRow((pdswlelDataSet.ttblwlelRow)row); this.SaveChanges(); return(this.dataSet.ttblwlel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwlel.Rows[0]) : null); }
public Wlel GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wlel wlel = null; if (row != null) { wlel = this.BuildFromRow(row); } return(wlel); }
protected Wlel Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwlel.AsEnumerable().SingleOrDefault(); Wlel wlel = null; if (row != null) { wlel = this.BuildFromRow(row); } return(wlel); }
public void Delete(Wlel record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwlel.NewttblwlelRow(); Wlel.BuildMinimalRow(ref row, record); this.dataSet.ttblwlel.AddttblwlelRow((pdswlelDataSet.ttblwlelRow)row); } row.Delete(); this.SaveChanges(); }
public Wlel Update(Wlel 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.ttblwlel.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwlel.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Wlel record) { Wlel.UpdateRowFromWlel(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Wlel record) { this.adapter.Delete(record); }
public Wlel Update(Wlel record) { return(this.adapter.Update(record)); }
public Wlel Insert(Wlel record) { return(this.adapter.Insert(record)); }
public void Delete(Wlel record) { this.repository.Delete(record); }
public Wlel Update(Wlel record) { return(this.repository.Update(record)); }
public Wlel Insert(Wlel record) { return(this.repository.Insert(record)); }