Hi. I would like to ask if the adapter closes its internal db connection when an exception occurs and KeepConnectionOpen=true. In other words, is it safe for the the client to code like this:
DataAccessAdapter adp = new DataAccessAdapter(true);
adp.FetchEntity(..);
adp.FetchEntity(..);
adp.CloseConnection();
or is it expected to do the following to avoid connection leakage:
DataAccessAdapter adp = new DataAccessAdapter(true);
try {
adp.FetchEntity(..);
adp.FetchEntity(..);
}
finally { adp.CloseConnection(); }