QuickObjects.DBLibrary Send comments on this topic.
CreateConnection Method
See Also 
Akal.QuickObjects.DBLibrary Namespace > DatabaseObjectSQL Class : CreateConnection Method

CreateConnection

Creates a database connection and sets the DBConnection property.

Depending on the DBType value either a SqlConnection object is created and stored in DBConnection property or an OracleConnection object is created and stored. If the DBConnection already has a connection object then this method does not create a new instance, instead it simply ensures that the connection is open.

Also, if the UseTransaction property is set to true, then a new transaction object is created at the time of creating a connection.

If there are any exceptions during connection or transaction object creation, the ErrorString property is populated with the exception message.


	dbObj.CreateConnection();
	

Syntax

C# 
public void CreateConnection()

Requirements

Target Platforms: .NET Framework 1.1 or .NET Framework 2.0

See Also