Class DatabaseModel
Represents the database configuration model used during installation.
Inheritance
Namespace: Umbraco.Cms.Core.Install.Models
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "database", Namespace = "")]
public class DatabaseModel
Constructors
View SourceDatabaseModel()
Declaration
public DatabaseModel()
Properties
View SourceConnectionString
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.
DatabaseName
Gets or sets the name of the database.
Declaration
[DataMember(Name = "databaseName")]
public string DatabaseName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
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 |
Login
Gets or sets the login username for database authentication.
Declaration
[DataMember(Name = "login")]
public string? Login { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Password
Gets or sets the password for database authentication.
Declaration
[DataMember(Name = "password")]
public string? Password { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ProviderName
Gets or sets the name of the database provider.
Declaration
[DataMember(Name = "providerName")]
public string? ProviderName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
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.
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 |