cmd.Connection.State什么意思
Namespace DataProvider
Public Class DataProvider
'更新
Public Shared Function ExecNonQuery(ByVal cmd As SqlCommand) As Integer
Try
If cmd.Connection.State <> ConnectionState.Open Then
cmd.Connection.Open()
End If
Return cmd.ExecuteNonQuery()
go()
Catch ex As Exception
Throw ex
Finally
If cmd.Connection.State = ConnectionState.Open Then
cmd.Connection.Close()
End If
End Try
End Function
那为朋友 有时间的话 能帮我一句一句 解释出来 每一条语句的意思吗? 我只知道大概的意思 比如 Namespace DataProvider
(定义一个DataProbider的命名空间) 孤独的初学者拜师~ 哪个师傅收下小弟