public Stntbl BuildFromRow(DataRow row) { var returnRecord = Stntbl.BuildStntblFromRow(row); returnRecord = this.BuildExtraFromRow <Stntbl>(returnRecord, row); return(returnRecord); }
public Stntbl Insert(Stntbl record) { DataRow row = this.dataSet.ttblstntbl.NewttblstntblRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblstntbl.AddttblstntblRow((pdsstntblDataSet.ttblstntblRow)row); this.SaveChanges(); return(this.dataSet.ttblstntbl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblstntbl.Rows[0]) : null); }
public Stntbl GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Stntbl stntbl = null; if (row != null) { stntbl = this.BuildFromRow(row); } return(stntbl); }
protected Stntbl Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblstntbl.AsEnumerable().SingleOrDefault(); Stntbl stntbl = null; if (row != null) { stntbl = this.BuildFromRow(row); } return(stntbl); }
public void Delete(Stntbl record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblstntbl.NewttblstntblRow(); Stntbl.BuildMinimalRow(ref row, record); this.dataSet.ttblstntbl.AddttblstntblRow((pdsstntblDataSet.ttblstntblRow)row); } row.Delete(); this.SaveChanges(); }
public Stntbl Update(Stntbl 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.ttblstntbl.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblstntbl.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Stntbl record) { this.adapter.Delete(record); }
public Stntbl Update(Stntbl record) { return(this.adapter.Update(record)); }
public Stntbl Insert(Stntbl record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Stntbl record) { Stntbl.UpdateRowFromStntbl(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public Stntbl Update(Stntbl record) { return(this.repository.Update(record)); }
public Stntbl Insert(Stntbl record) { return(this.repository.Insert(record)); }
public void Delete(Stntbl record) { this.repository.Delete(record); }