Search Results for

    Show / Hide Table of Contents

    Interface IUmbracoDatabase

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

    Properties

    EnableSqlCount

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

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

    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

    SqlCount

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

    Methods

    BulkInsertRecords<T>(IEnumerable<T>)

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

    IsUmbracoInstalled()

    Declaration
    bool IsUmbracoInstalled()
    Returns
    Type Description
    System.Boolean

    ValidateSchema()

    Declaration
    DatabaseSchemaResult ValidateSchema()
    Returns
    Type Description
    DatabaseSchemaResult
    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