Icon View Incident Report

Minor Minor
Reported By: Hedley Muscroft
Reported On: 2/14/2009
For: Version 2.02 Build 7
# 2923 EDBCommandBuilder Constructor Not Initializing DataAdapter Property Properly

If I use the following, an InvalidOperationException is thrown which says "SelectCommand property needs to be initialized."

It looks like the EDBCommandBuilder constructor which accepts a DataAdapter is not initializing the DataAdapter correctly.

Not okay:

EDBDataAdapter adap = new EDBDataAdapter("select * from occupation", con);
EDBCommandBuilder cb = new EDBCommandBuilderadapp);
cb.GetUpdateCommand();

Okay:

EDBDataAdapter adap = new EDBDataAdapter("select * from occupation", con);
EDBCommandBuilder cb = new EDBCommandBuilder();
cb.DataAdapter = adap;
cb.GetUpdateCommand();



Comments Comments and Workarounds
The workaround is as-described.


Resolution Resolution
Fixed Problem on 2/14/2009 in version 2.02 build 7


Products Affected Products Affected
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial

Image