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

AssignConnection

If the current instance does not have an instance of database connection object, then this method calls CreateConnection method. After that the reference to the existing database connection object stored in DBConnection is passed to the passed in Object's DBConnection member variable.

If the current instance's UseTransaction is set to true then this method also passes the reference to the existing transaction object stored in DBTransaction to the passed in Object's DBTransaction member variable.

This method also assigns the SessionStartCommand and SessionEndCommands allowing any of the connected business objects to be able to run the SessionStartCommand and SessionEndCommand at the time of database connection opening and closing.

Parameters:
Description
dbObjDatabaseObjectSQL instances that will receive the DBConnection and DBTransaction values.


	this.AssignConnection(databaseObjectToJoin);
	

Syntax

C# 
public void AssignConnection( 
   DatabaseObjectSQL dbObj
)

Parameters

dbObj

Requirements

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

See Also