ReliableSqlConnection Members
Include Protected Members
Include Inherited Members
The ReliableSqlConnection type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ReliableSqlConnection(String) |
Initializes a new instance of the ReliableSqlConnection class with the specified connection string. Uses the default retry policy for connections and commands unless retry settings are provided in the connection string.
|
|
ReliableSqlConnection(String, RetryPolicy) |
Initializes a new instance of the ReliableSqlConnection class with the specified connection string and a policy that defines whether to retry a request if a connection or command fails.
|
|
ReliableSqlConnection(String, RetryPolicy, RetryPolicy) |
Initializes a new instance of the ReliableSqlConnection class with the specified connection string and a policy that defines whether to retry a request if a connection or command fails.
|
Methods
Name | Description | |
---|---|---|
BeginTransaction() |
Begins a database transaction.
|
|
BeginTransaction(IsolationLevel) |
Begins a database transaction with the specified System.Data.IsolationLevel value.
|
|
ChangeDatabase |
Changes the current database for an open Connection object.
|
|
Close |
Closes the connection to the database.
|
|
CreateCommand |
Creates and returns a SqlCommand object that is associated with the underlying SqlConnection.
|
|
Dispose |
Performs application-defined tasks that are associated with freeing, releasing, or resetting managed and unmanaged resources.
|
|
Equals | (Inherited from Object.) | |
ExecuteCommand(IDbCommand) |
Executes a SQL command and returns the number of rows affected.
|
|
ExecuteCommand(IDbCommand, RetryPolicy) |
Executes a SQL command and returns the number of rows affected.
|
|
ExecuteCommand<T>(IDbCommand) |
Executes a SQL command and returns a result that is defined by the specified type T. This method uses the retry policy specified when instantiating the SqlAzureConnection class (or the default retry policy if no policy was set at construction time).
|
|
ExecuteCommand<T>(IDbCommand, RetryPolicy) |
Executes a SQL command by using the specified retry policy, and returns a result that is defined by the specified type T
|
|
ExecuteCommand<T>(IDbCommand, CommandBehavior) |
Executes a SQL command and returns a result that is defined by the specified type T. This method uses the retry policy specified when instantiating the SqlAzureConnection class (or the default retry policy if no policy was set at construction time).
|
|
ExecuteCommand<T>(IDbCommand, RetryPolicy, CommandBehavior) |
Executes a SQL command by using the specified retry policy, and returns a result that is defined by the specified type T
|
|
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
Open() |
Opens a database connection with the settings specified by the ConnectionString and ConnectionRetryPolicy properties.
|
|
Open(RetryPolicy) |
Opens a database connection with the settings specified by the connection string and the specified retry policy.
|
|
ToString |
Returns a string that represents the current object.
(Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
CommandRetryPolicy |
Gets the policy that determines whether to retry a command, based on how many times the request has been made and the reason for the last failure.
|
|
ConnectionRetryPolicy |
Gets the policy that determines whether to retry a connection request, based on how many times the request has been made and the reason for the last failure.
|
|
ConnectionString |
Gets or sets the connection string for opening a connection to the SQL Database.
|
|
ConnectionTimeout |
Gets a value that specifies the time to wait while trying to establish a connection before terminating the attempt and generating an error.
|
|
Current |
Gets an instance of the SqlConnection object that represents the connection to a SQL Database instance.
|
|
Database |
Gets the name of the current database or the database to be used after a connection is opened.
|
|
SessionTracingId |
Gets the CONTEXT_INFO value that was set for the current session. This value can be used to trace query execution problems.
|
|
State |
Gets the current state of the connection.
|
See Also
Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling Namespace