I know there is probably an obvious reason but I can't find it..
I usually use the using
statement during DB connection and data reading, but I can't use it on DataAdapter
because it doesn't implement IDisposable
.
Also: how can it behave after filling a dataset?
Does it close itself the connection?
Only close it or dispose it?
Do I have to dispose the internal connection by myself after the dataset filling? If so, why IDataAdapter
doesn't have a related property/method?