Interface IUmbracoDatabase
Namespace: Umbraco.Core.Persistence
Assembly: Umbraco.Core.dll
Syntax
public interface IUmbracoDatabase
Properties
View SourceInstanceId
Gets the database instance unique identifier as a string.
Declaration
string InstanceId { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
UmbracoDatabase returns the first eight digits of its unique Guid and, in some debug mode, the underlying database connection identifier (if any).
InTransaction
Gets a value indicating whether the database is currently in a transaction.
Declaration
bool InTransaction { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SqlContext
Gets the Sql context.
Declaration
ISqlContext SqlContext { get; }
Property Value
Type | Description |
---|---|
ISqlContext |