SIGN UP MEMBER LOGIN:    
Blog

Public methods of DbConnectionBase Class Members

Posted by Monika Arora Blogs | SQLite Feb 06, 2012
In this blog, I have discussed the Public methods of DbConnectionBase Class Members which are BeginOpen, BeginTransaction, ChangeDatabase, Close etc.

The Public methods of DbConnectionBase Class Members are as follows:

BeginOpen:
It begins an asynchronous calling of an Open method.

BeginTransaction:
This method is overloaded. It begins a transaction in database. The base classs of this method is System.Data.Common.DbConnection.

ChangeDatabase:
This method needs to be overridden. It changes the present database concerned with an open DbConnectionBase.

Close:
This method can be overridden. It shuts down the connection which was established to the database. For closing an open connection, this method is given preference.

CreateCommand:
It generates and give in return a DbCommand object that is related with the present connection. The base class for this is System.Data.Common.DbConnection.

CreateObjRef:
It makes an object that consist of all related information needed to create a proxy used for communicating with a remote object. The base class for it is System.MarshalByRefObject.

Dispose:
It frees all of the resources that are used by the component. The base class for it is System.ComponentModel.Component.

EndOpen:
It finishes an asynchronous calling of the Open method.

EnlistTransaction:
It can be overridden. Its work is to enlists in the indicated transaction.

GetLifetimeService:
It access the present lifetime service object that manages the lifetime policy for a given instance. The base class for it is System.MarshalByRefObject.

GetSchema:
Overloaded. This method needs to be overridden. It gives information related to server schema objects.

Open:
This methods is overridden. It opens a connection to a database with the settings of property mentioned by the ConnectionString.

ToString:
There is no need to override this method. It outputs a string that consist of the component's name.

 

share this blog :
post comment