Class UmbracoDatabase
Represents the Umbraco implementation of the PetaPoco Database object
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public class UmbracoDatabase : Database, IDisposable
Constructors
UmbracoDatabase(IDbConnection)
Declaration
[Obsolete("Use the other constructor specifying an ILogger instead")]
public UmbracoDatabase(IDbConnection connection)
Parameters
Type |
Name |
Description |
System.Data.IDbConnection |
connection |
|
UmbracoDatabase(IDbConnection, ILogger)
Declaration
public UmbracoDatabase(IDbConnection connection, ILogger logger)
Parameters
Type |
Name |
Description |
System.Data.IDbConnection |
connection |
|
ILogger |
logger |
|
UmbracoDatabase(String)
Declaration
[Obsolete("Use the other constructor specifying an ILogger instead")]
public UmbracoDatabase(string connectionStringName)
Parameters
Type |
Name |
Description |
System.String |
connectionStringName |
|
UmbracoDatabase(String, DbProviderFactory)
Declaration
[Obsolete("Use the other constructor specifying an ILogger instead")]
public UmbracoDatabase(string connectionString, DbProviderFactory provider)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
|
System.Data.Common.DbProviderFactory |
provider |
|
UmbracoDatabase(String, DbProviderFactory, ILogger)
Declaration
public UmbracoDatabase(string connectionString, DbProviderFactory provider, ILogger logger)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
|
System.Data.Common.DbProviderFactory |
provider |
|
ILogger |
logger |
|
UmbracoDatabase(String, String)
Declaration
[Obsolete("Use the other constructor specifying an ILogger instead")]
public UmbracoDatabase(string connectionString, string providerName)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
|
System.String |
providerName |
|
UmbracoDatabase(String, String, ILogger)
Declaration
public UmbracoDatabase(string connectionString, string providerName, ILogger logger)
Parameters
Type |
Name |
Description |
System.String |
connectionString |
|
System.String |
providerName |
|
ILogger |
logger |
|
UmbracoDatabase(String, ILogger)
Declaration
public UmbracoDatabase(string connectionStringName, ILogger logger)
Parameters
Type |
Name |
Description |
System.String |
connectionStringName |
|
ILogger |
logger |
|
Properties
InstanceSid
Declaration
public string InstanceSid { get; }
Property Value
Type |
Description |
System.String |
|
InTransaction
Declaration
public bool InTransaction { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
OnBeginTransaction()
Declaration
public override void OnBeginTransaction()
OnConnectionOpened(IDbConnection)
Declaration
public override IDbConnection OnConnectionOpened(IDbConnection connection)
Parameters
Type |
Name |
Description |
System.Data.IDbConnection |
connection |
|
Returns
Type |
Description |
System.Data.IDbConnection |
|
OnEndTransaction()
Declaration
public override void OnEndTransaction()
OnException(Exception)
Declaration
public override void OnException(Exception x)
Parameters
Type |
Name |
Description |
System.Exception |
x |
|
OnExecutedCommand(IDbCommand)
Declaration
public override void OnExecutedCommand(IDbCommand cmd)
Parameters
Type |
Name |
Description |
System.Data.IDbCommand |
cmd |
|
OnExecutingCommand(IDbCommand)
Declaration
public override void OnExecutingCommand(IDbCommand cmd)
Parameters
Type |
Name |
Description |
System.Data.IDbCommand |
cmd |
|