G
Guest
Hi;
If I do using (DbConnection conn = ...) { ... code ... }
That will call dispose when it exits the using. Does that dispose call Close
(if the connection is open) and will it do so even on an exception? Reading
the docs I assume it does, but I can't find anywhere that it says absolutely
it does.
If I do using (DbConnection conn = ...) { ... code ... }
That will call dispose when it exits the using. Does that dispose call Close
(if the connection is open) and will it do so even on an exception? Reading
the docs I assume it does, but I can't find anywhere that it says absolutely
it does.