public Venmst BuildFromRow(DataRow row) { var returnRecord = Venmst.BuildVenmstFromRow(row); returnRecord = this.BuildExtraFromRow <Venmst>(returnRecord, row); return(returnRecord); }
public Venmst Insert(Venmst record) { DataRow row = this.dataSet.ttblvenmst.NewttblvenmstRow(); this.UpdateToRow(ref row, record); this.ExtraUpdateToRow(ref row, record); this.dataSet.ttblvenmst.AddttblvenmstRow((pdsvenmstDataSet.ttblvenmstRow)row); this.SaveChanges(); return(this.dataSet.ttblvenmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvenmst.Rows[0]) : null); }
public Venmst GetByRowId(string rowId, string fldList) { var row = this.GetRowByRowId(rowId, fldList); Venmst venmst = null; if (row != null) { venmst = this.BuildFromRow(row); } return(venmst); }
protected Venmst Fetch(string where, int batchsize, string fldList) { this.FetchWhere(where, batchsize, fldList); var row = this.dataSet.ttblvenmst.AsEnumerable().SingleOrDefault(); Venmst venmst = null; if (row != null) { venmst = this.BuildFromRow(row); } return(venmst); }
private void DeleteUseRowID(Venmst record) { var row = this.GetRowByRowId(record.rowID, string.Empty); if (row == null) { row = this.dataSet.ttblvenmst.NewttblvenmstRow(); Venmst.BuildMinimalRow(ref row, record); this.dataSet.ttblvenmst.AddttblvenmstRow((pdsvenmstDataSet.ttblvenmstRow)row); } row.Delete(); this.SaveChanges(); }
public Venmst Update(Venmst 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.ttblvenmst.Rows.Count > 0 ? this.BuildFromRow(this.dataSet.ttblvenmst.Rows[0]) : null); } ErrorReportingHelper.ReportErrors("global.update.doesnotexist", 421); return(null); }
public void Delete(Venmst record) { this.adapter.Delete(record); }
public Venmst Update(Venmst record) { return(this.adapter.Update(record)); }
public Venmst Insert(Venmst record) { return(this.adapter.Insert(record)); }
public void Delete(Venmst record) { this.repository.Delete(record); }
public Venmst Update(Venmst record) { return(this.repository.Update(record)); }
public Venmst Insert(Venmst record) { return(this.repository.Insert(record)); }
public void UpdateToRow(ref DataRow row, Venmst record) { Venmst.UpdateRowFromVenmst(ref row, record); this.ExtraUpdateToRow(ref row, record); }