Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUmbracoDatabase

    Namespace: Umbraco.Cms.Infrastructure.Persistence
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IUmbracoDatabase

    Properties

    View Source

    EnableSqlCount

    Declaration
    bool EnableSqlCount { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    InstanceId

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

    View Source

    InTransaction

    Gets a value indicating whether the database is currently in a transaction.

    Declaration
    bool InTransaction { get; }
    Property Value
    Type Description
    System.Boolean
    View Source

    SqlContext

    Gets the Sql context.

    Declaration
    ISqlContext SqlContext { get; }
    Property Value
    Type Description
    ISqlContext
    View Source

    SqlCount

    Declaration
    int SqlCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    View Source

    BulkInsertRecords<T>(IEnumerable<T>)

    Declaration
    int BulkInsertRecords<T>(IEnumerable<T> records)
    Parameters
    Type Name Description
    IEnumerable<T> records
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T
    View Source

    IsUmbracoInstalled()

    Declaration
    bool IsUmbracoInstalled()
    Returns
    Type Description
    System.Boolean
    View Source

    ValidateSchema()

    Declaration
    DatabaseSchemaResult ValidateSchema()
    Returns
    Type Description
    DatabaseSchemaResult
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • EnableSqlCount
      • InstanceId
      • InTransaction
      • SqlContext
      • SqlCount
    • Methods
      • BulkInsertRecords<T>(IEnumerable<T>)
      • IsUmbracoInstalled()
      • ValidateSchema()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX