DataAccess Methods

The DataAccess type exposes the following members.

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.)

See Also