public Vast BuildFromRow(DataRow row) { var returnRecord = Vast.BuildVastFromRow(row); returnRecord = this.BuildExtraFromRow <Vast>(returnRecord, row); return(returnRecord); }
public Vast Insert(Vast record) { DataRow row = this.dataSet.ttblvast.NewttblvastRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvast.AddttblvastRow((pdsvastDataSet.ttblvastRow)row); this.SaveChanges(); return(this.dataSet.ttblvast.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvast.Rows[0]) : null); }
public Vast GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Vast vast = null; if (row != null) { vast = this.BuildFromRow(row); } return(vast); }
protected Vast Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvast.AsEnumerable().SingleOrDefault(); Vast vast = null; if (row != null) { vast = this.BuildFromRow(row); } return(vast); }
public void Delete(Vast record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvast.NewttblvastRow(); Vast.BuildMinimalRow(ref row, record); this.dataSet.ttblvast.AddttblvastRow((pdsvastDataSet.ttblvastRow)row); } row.Delete(); this.SaveChanges(); }
public Vast Update(Vast 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.ttblvast.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvast.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Vast record) { this.repository.Delete(record); }
public Vast Update(Vast record) { return(this.repository.Update(record)); }
public Vast Insert(Vast record) { return(this.repository.Insert(record)); }
public void Delete(Vast record) { this.adapter.Delete(record); }
public Vast Update(Vast record) { return(this.adapter.Update(record)); }
public Vast Insert(Vast record) { return(this.adapter.Insert(record)); }
public void UpdateToRow(ref DataRow row, Vast record) { Vast.UpdateRowFromVast(ref row, record); this.ExtraUpdateToRow(ref row, record); }