G
Guest
Just curious,
Data Access Application Block people:
Since DBCommandWrapper implements IDispose I use 'using' when working with
it. This is leading to a not too attractive loop structure when working with
DataReaders because I'm indented half way across the screen before actually
working with data. Q: Why does the DBCommandWrapper implement IDispose?:
try
{
using (DBCommandWrapper dbcw = ...)
{
using (IDataReader dr = ...)
{
...
}
}
}
Data Access Application Block people:
Since DBCommandWrapper implements IDispose I use 'using' when working with
it. This is leading to a not too attractive loop structure when working with
DataReaders because I'm indented half way across the screen before actually
working with data. Q: Why does the DBCommandWrapper implement IDispose?:
try
{
using (DBCommandWrapper dbcw = ...)
{
using (IDataReader dr = ...)
{
...
}
}
}