public Wlal BuildFromRow(DataRow row) { var returnRecord = Wlal.BuildWlalFromRow(row); returnRecord = this.BuildExtraFromRow <Wlal>(returnRecord, row); return(returnRecord); }
public Wlal Insert(Wlal record) { DataRow row = this.dataSet.ttblwlal.NewttblwlalRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblwlal.AddttblwlalRow((pdswlalDataSet.ttblwlalRow)row); this.SaveChanges(); return(this.dataSet.ttblwlal.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwlal.Rows[0]) : null); }
public Wlal GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Wlal wlal = null; if (row != null) { wlal = this.BuildFromRow(row); } return(wlal); }
protected Wlal Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblwlal.AsEnumerable().SingleOrDefault(); Wlal wlal = null; if (row != null) { wlal = this.BuildFromRow(row); } return(wlal); }
public void Delete(Wlal record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblwlal.NewttblwlalRow(); Wlal.BuildMinimalRow(ref row, record); this.dataSet.ttblwlal.AddttblwlalRow((pdswlalDataSet.ttblwlalRow)row); } row.Delete(); this.SaveChanges(); }
public Wlal Update(Wlal 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.ttblwlal.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblwlal.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Wlal record) { Wlal.UpdateRowFromWlal(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Wlal Insert(Wlal record) { return(this.repository.Insert(record)); }
public void Delete(Wlal record) { this.repository.Delete(record); }
public Wlal Update(Wlal record) { return(this.repository.Update(record)); }
public void Delete(Wlal record) { this.adapter.Delete(record); }
public Wlal Update(Wlal record) { return(this.adapter.Update(record)); }
public Wlal Insert(Wlal record) { return(this.adapter.Insert(record)); }