public Vaeh BuildFromRow(DataRow row) { var returnRecord = Vaeh.BuildVaehFromRow(row); returnRecord = this.BuildExtraFromRow <Vaeh>(returnRecord, row); return(returnRecord); }
public Vaeh Insert(Vaeh record) { DataRow row = this.dataSet.ttblvaeh.NewttblvaehRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvaeh.AddttblvaehRow((pdsvaehDataSet.ttblvaehRow)row); this.SaveChanges(); return(this.dataSet.ttblvaeh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaeh.Rows[0]) : null); }
public Vaeh GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Vaeh vaeh = null; if (row != null) { vaeh = this.BuildFromRow(row); } return(vaeh); }
protected Vaeh Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvaeh.AsEnumerable().SingleOrDefault(); Vaeh vaeh = null; if (row != null) { vaeh = this.BuildFromRow(row); } return(vaeh); }
private void DeleteUseRowID(Vaeh record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvaeh.NewttblvaehRow(); Vaeh.BuildMinimalRow(ref row, record); this.dataSet.ttblvaeh.AddttblvaehRow((pdsvaehDataSet.ttblvaehRow)row); } row.Delete(); this.SaveChanges(); }
public Vaeh Update(Vaeh record) { var row = this.GetRowByRowpointer(record.rowpointer, string.Empty); if (row != null) { this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.SaveChanges(); return(this.dataSet.ttblvaeh.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvaeh.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void UpdateToRow(ref DataRow row, Vaeh record) { Vaeh.UpdateRowFromVaeh(ref row, record); this.ExtraUpdateToRow(ref row, record); }
public void Delete(Vaeh record) { this.adapter.Delete(record); }
public Vaeh Update(Vaeh record) { return(this.adapter.Update(record)); }
public Vaeh Insert(Vaeh record) { return(this.adapter.Insert(record)); }
public void Delete(Vaeh record) { this.repository.Delete(record); }
public Vaeh Update(Vaeh record) { return(this.repository.Update(record)); }
public Vaeh Insert(Vaeh record) { return(this.repository.Insert(record)); }