|
' ___________________________________________________
'
' � Hi-Integrity Systems 2007. All rights reserved.
' www.hisystems.com.au - Toby Wicks
' ___________________________________________________
'
Option Strict On
Option Explicit On
Namespace SQL
Public MustInherit Class SQLStatement
Implements ISQLStatement
Private Shared peDefaultConnectionType As Database.ConnectionType
''' --------------------------------------------------------------------------------
''' <summary>
''' This is used as the default connection type when manually instantiating a
''' SQLSelect, SQLDelete, SQLUpdate or SQLInsert command (which all inherit from
''' SQLStatement) and is set by the last Database.Connect function's ConnectionType
''' argument. However, the Database class does not rely on this property as the
''' ConnectionType property is set before any SQL statements are executed. This
''' allows different Database instances to use different databases.
''' </summary>
''' --------------------------------------------------------------------------------
Public Shared Property DefaultConnectionType() As Database.ConnectionType
Get
Return peDefaultConnectionType
End Get
Set(ByVal Value As Database.ConnectionType)
peDefaultConnectionType = Value
End Set
End Property
Private peConnectionType As Database.ConnectionType = DefaultConnectionType
Public Property ConnectionType() As Database.ConnectionType Implements ISQLStatement.ConnectionType
Get
Return peConnectionType
End Get
Set(ByVal Value As Database.ConnectionType)
peConnectionType = Value
End Set
End Property
Public MustOverride ReadOnly Property SQL() As String Implements ISQLStatement.SQL
End Class
End Namespace
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.