Class DatabaseConnectionConfiguration
- Namespace
- OrpheusCore.Configuration.Models
- Assembly
- OrpheusCore.dll
Orpheus database configuration.
public class DatabaseConnectionConfiguration : IDatabaseConnectionConfiguration
- Inheritance
-
DatabaseConnectionConfiguration
- Implements
- Inherited Members
Properties
ConfigurationName
public string ConfigurationName { get; set; }
Property Value
- string
Database configuration name.
ConnectionIdleTimeout
Time, in seconds, a connection can remain idle in the pool before being removed. Default: 300.
public int ConnectionIdleTimeout { get; set; }
Property Value
DatabaseName
public string DatabaseName { get; set; }
Property Value
- string
The database name.
EncyrptConnection
Set if the connection will be encrytped or not.
public EncyrptConnection EncyrptConnection { get; set; }
Property Value
MaxPoolSize
Maximum number of connections allowed in the pool. Default: 100.
public int MaxPoolSize { get; set; }
Property Value
MinPoolSize
Minimum number of connections maintained in the pool. Default: 0.
public int MinPoolSize { get; set; }
Property Value
Password
public string Password { get; set; }
Property Value
- string
Password.
Pooling
Whether ADO.NET connection pooling is enabled. Default: true.
public bool Pooling { get; set; }
Property Value
Port
public int Port { get; set; }
Property Value
- int
Port number. 0 means use the database engine default.
Server
public string Server { get; set; }
Property Value
- string
Server name or IP address.
ServicePassword
public string ServicePassword { get; set; }
Property Value
- string
Implicitly Orpheus makes a second connection to the database, to perform mainly schema related/DDL functionality. The ServicePassword is the one that will be used for that connection.
ServiceUserName
public string ServiceUserName { get; set; }
Property Value
- string
Implicitly Orpheus makes a second connection to the database, to perform mainly schema related/DDL functionality. The ServiceUserName is the one that will be used for that connection.
TrustServerCertificate
True to trust the server certificate. Default is true.
public bool TrustServerCertificate { get; set; }
Property Value
UseIntegratedSecurity
public bool UseIntegratedSecurity { get; set; }
Property Value
- bool
SQL Server specific. If true, any UserName/Password configured will be ignored.
UseIntegratedSecurityForServiceConnection
public bool UseIntegratedSecurityForServiceConnection { get; set; }
Property Value
- bool
Implicitly Orpheus makes a second connection to the database, to perform mainly schema related/DDL functionality. This boolean sets this second connection, integrated security setting.
UserName
public string UserName { get; set; }
Property Value
- string
User name.
Methods
Clone()
Creates a clone of this database configuration.
public IDatabaseConnectionConfiguration Clone()