阅读背景:

SqlDataAdapter.Dispose实际关闭关联的SqlConnection吗?

来源:互联网 

Does anyone know if the SqlDataAdapter.Dispose method actually closes or disposes any SqlConnections? I loaded up Reflector and I see that SqlDataAdapter inherits from DbDataAdapter. If I disassemble and look at the dispose method in that class, there appears to be no disposal of any SqlConnections. I suppose I could write a test for this, but I figured I would ask to see if anyone had any insight on this.Does anyone know if the SqlDataAdapter.Dispose




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: