Search Results for

    Show / Hide Table of Contents
    View Source

    Class DatabaseModel

    Represents the database configuration model used during installation.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Install.Models
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "database", Namespace = "")]
    public class DatabaseModel

    Constructors

    View Source

    DatabaseModel()

    Declaration
    public DatabaseModel()

    Properties

    View Source

    ConnectionString

    Gets or sets the full connection string for the database.

    Declaration
    [DataMember(Name = "connectionString")]
    public string? ConnectionString { get; set; }
    Property Value
    Type Description
    string
    Remarks

    When provided, this connection string is used directly instead of building one from the other properties.

    View Source

    DatabaseName

    Gets or sets the name of the database.

    Declaration
    [DataMember(Name = "databaseName")]
    public string DatabaseName { get; set; }
    Property Value
    Type Description
    string
    View Source

    DatabaseProviderMetadataId

    Gets or sets the unique identifier for the database provider metadata.

    Declaration
    [DataMember(Name = "databaseProviderMetadataId")]
    public Guid DatabaseProviderMetadataId { get; set; }
    Property Value
    Type Description
    Guid
    View Source

    IntegratedAuth

    Gets or sets a value indicating whether to use integrated (Windows) authentication.

    Declaration
    [DataMember(Name = "integratedAuth")]
    public bool IntegratedAuth { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Login

    Gets or sets the login username for database authentication.

    Declaration
    [DataMember(Name = "login")]
    public string? Login { get; set; }
    Property Value
    Type Description
    string
    View Source

    Password

    Gets or sets the password for database authentication.

    Declaration
    [DataMember(Name = "password")]
    public string? Password { get; set; }
    Property Value
    Type Description
    string
    View Source

    ProviderName

    Gets or sets the name of the database provider.

    Declaration
    [DataMember(Name = "providerName")]
    public string? ProviderName { get; set; }
    Property Value
    Type Description
    string
    View Source

    Server

    Gets or sets the database server address.

    Declaration
    [DataMember(Name = "server")]
    public string Server { get; set; }
    Property Value
    Type Description
    string
    Remarks

    This value can be null for certain database providers, such as SQLite.

    View Source

    TrustServerCertificate

    Gets or sets a value indicating whether to trust the server certificate.

    Declaration
    [DataMember(Name = "trustServerCertificate")]
    public bool TrustServerCertificate { get; set; }
    Property Value
    Type Description
    bool
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX