Blog
Public properties of DbconnectionsBase Class members
In this Blog, I have discussed the public properties of DbconnectionBase Class which are Connection String, ConnectionTimeout, Container, Database etc.
DbConnectionBase Class indicates a connection
to a server which is opened. The public properties of DbconnectionBase Class
members are as follows:
Connection String: You can override this property. It obtain or fixes a
string which is used for opening a connection to server.
ConnectionTimeout: This property can be overridden. It obtain or fixes the
time for which wait can be done before it ends the attempt to establish a
connection and create an error.
Container: It obtains the Icontainer that consist of a Component. The base
class of it is System.ComponentModel.Component.
Database: It can be overridden. It obtain or assigns the name of the present
database as soon as the connection is opened.
Name: It obtains or assigns the name of the component.
Owner: It obtains or assigns a form or other container to which the
DbConnectionBase instance is related.
Server Version: This property can be overridden. It obtains a string that
consist of the version of the instance to which the client have a connection.
Site: It obtains or assigns the ISite of the component. The base class for
it is System.ComponentModel.Component.
State: This property can be overridden. It obtains the present state of the
connection.
DataSource: It can be overridden. It obtains or assigns the name of the
server to which you want to establish a connection.