I'm creating a new class "XMLFile" in my application.
Should I pass it the ADO Connection object (byref) in the constructor function?
Or should I create a static class and create a global connection variable?
-> Here as an instance of the class is created, a connection object is passed to it, and the constructor sets the class-level connection variable (madoConn) with a reference to the connection object.
Public Class XMLFile
Public Sub New(ByRef ladoConn As SqlConnection)
madoConn = ladoConn
End Sub
End Class


Reply With Quote
