B
Big D
If you define a sqlCommands connection property directly as in:
mySqlCommand.Connection = new sqlConnection(connectionString)
When you call dispose on the command, does it automatically call the dispose
method of the connection? It seems like this is the reason to have a
dispose property (iterates through the child components and disposes of them
if appropriate??), but it's new to me, so I'm not sure.
Thanks!
MCD
mySqlCommand.Connection = new sqlConnection(connectionString)
When you call dispose on the command, does it automatically call the dispose
method of the connection? It seems like this is the reason to have a
dispose property (iterates through the child components and disposes of them
if appropriate??), but it's new to me, so I'm not sure.
Thanks!
MCD