View Source
Class RetryDbConnection
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Data.Common.DbConnection
Assembly: Umbraco.Infrastructure.dll
Syntax
public class RetryDbConnection : DbConnection, IComponent, IDbConnection, IDisposable, IAsyncDisposable
Constructors
View Source
RetryDbConnection(DbConnection, RetryPolicy, RetryPolicy)
Declaration
public RetryDbConnection(DbConnection connection, RetryPolicy conRetryPolicy, RetryPolicy cmdRetryPolicy)
Parameters
Type |
Name |
Description |
System.Data.Common.DbConnection |
connection |
|
RetryPolicy |
conRetryPolicy |
|
RetryPolicy |
cmdRetryPolicy |
|
Properties
View Source
CanRaiseEvents
Declaration
protected override bool CanRaiseEvents { get; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
ConnectionString
Declaration
public override string ConnectionString { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
ConnectionTimeout
Declaration
public override int ConnectionTimeout { get; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Database
Declaration
public override string Database { get; }
Property Value
Type |
Description |
System.String |
|
View Source
DataSource
Declaration
public override string DataSource { get; }
Property Value
Type |
Description |
System.String |
|
View Source
Inner
Declaration
public DbConnection Inner { get; }
Property Value
Type |
Description |
System.Data.Common.DbConnection |
|
View Source
ServerVersion
Declaration
public override string ServerVersion { get; }
Property Value
Type |
Description |
System.String |
|
View Source
State
Declaration
public override ConnectionState State { get; }
Property Value
Type |
Description |
System.Data.ConnectionState |
|
Methods
View Source
BeginDbTransaction(IsolationLevel)
Declaration
protected override DbTransaction BeginDbTransaction(IsolationLevel isolationLevel)
Parameters
Type |
Name |
Description |
System.Data.IsolationLevel |
isolationLevel |
|
Returns
Type |
Description |
System.Data.Common.DbTransaction |
|
View Source
ChangeDatabase(String)
Declaration
public override void ChangeDatabase(string databaseName)
Parameters
Type |
Name |
Description |
System.String |
databaseName |
|
View Source
Close()
Declaration
public override void Close()
View Source
CreateDbCommand()
Declaration
protected override DbCommand CreateDbCommand()
Returns
Type |
Description |
System.Data.Common.DbCommand |
|
View Source
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
View Source
EnlistTransaction(Transaction)
Declaration
public override void EnlistTransaction(Transaction transaction)
Parameters
Type |
Name |
Description |
System.Transactions.Transaction |
transaction |
|
View Source
Ensure()
Declaration
View Source
GetSchema()
Declaration
public override DataTable GetSchema()
Returns
Type |
Description |
System.Data.DataTable |
|
View Source
GetSchema(String)
Declaration
public override DataTable GetSchema(string collectionName)
Parameters
Type |
Name |
Description |
System.String |
collectionName |
|
Returns
Type |
Description |
System.Data.DataTable |
|
View Source
GetSchema(String, String[])
Declaration
public override DataTable GetSchema(string collectionName, string[] restrictionValues)
Parameters
Type |
Name |
Description |
System.String |
collectionName |
|
System.String[] |
restrictionValues |
|
Returns
Type |
Description |
System.Data.DataTable |
|
View Source
Open()
Declaration
public override void Open()