public Vaes BuildFromRow(DataRow row) { var returnRecord = Vaes.BuildVaesFromRow(row); returnRecord = this.BuildExtraFromRow <Vaes>(returnRecord, row); return(returnRecord); }
public Vaes Insert(Vaes record) { DataRow row = this.dataSet.ttblvaes.NewttblvaesRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvaes.AddttblvaesRow((pdsvaesDataSet.ttblvaesRow)row); this.SaveChanges(); return(this.dataSet.ttblvaes.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaes.Rows[0]) : null); }
public Vaes GetByRowId(string rowId, bool fillMode, string fldList) { var row = this.GetRowByRowId(rowId, fillMode, fldList); Vaes vaes = null; if (row != null) { vaes = this.BuildFromRow(row); } return(vaes); }
protected Vaes Fetch(string where, bool fillMode, int batchsize, string fldList) { this.FetchWhere(where, fillMode, batchsize, fldList); var row = this.dataSet.ttblvaes.AsEnumerable().SingleOrDefault(); Vaes vaes = null; if (row != null) { vaes = this.BuildFromRow(row); } return(vaes); }
private void DeleteUseRowID(Vaes record) { var row = this.GetRowByRowId(record.rowID, false, string.Empty); if (row == null) { row = this.dataSet.ttblvaes.NewttblvaesRow(); Vaes.BuildMinimalRow(ref row, record); this.dataSet.ttblvaes.AddttblvaesRow((pdsvaesDataSet.ttblvaesRow)row); } row.Delete(); this.SaveChanges(); }
public Vaes Update(Vaes record) { var row = this.GetRowByRowpointer(record.rowpointer, false, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblvaes.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaes.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public Vaes Insert(Vaes record) { return(this.adapter.Insert(record)); }
public void Delete(Vaes record) { this.adapter.Delete(record); }
public Vaes Update(Vaes record) { return(this.adapter.Update(record)); }
public void UpdateToRow(ref DataRow row, Vaes record) { Vaes.UpdateRowFromVaes(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Vaes record) { this.repository.Delete(record); }
public Vaes Update(Vaes record) { return(this.repository.Update(record)); }
public Vaes Insert(Vaes record) { return(this.repository.Insert(record)); }