The DataAccess type exposes the following members.

Constructors

  NameDescription
Public methodDataAccess
Initializes a new instance of the DataAccess class

Methods

  NameDescription
Public methodCloseConnection
Closes an existing database connection.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecuteNonQuery
Executes a sql statement against the connection and returns the number of rows affected.
Public methodExecuteReader
Executes a sql statement against the connection and returns an instance of SqlDataReader class.
Public methodExecuteScalar
Executes a sql statement against the connection and returns one scalar value.
Protected methodFinalize
Closes the underlying sql connection and releases other resources.
(Overrides Object..::..Finalize()()()().)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenConnection
Opens a connection to a database.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyIsConnected
Gets a value indicating whether a connection to a database has been established.

See Also