Show / Hide Table of Contents

    Class SqlDbConnectionOptions

    This configuration class defines an array of database SqlConnectionConfiguration. For example, you might configure your appsettings.json like this:

      "SqlDbConnections": [
      {
        "DatabaseKey": "MyDatabase",
        "DataConnection": {
          "UserName": "webUser",
          "Password": "pwd1234",
          "DataSource": "localhost",
          "InitialCatalog": "MyDb"
          }
        }
      ]

    Note that the SecurityKey must match a defined key in the DataSecurityOptions; likewise, a ResilienceKey (if defined) must match a key in the DataResilienceOptions array.

    Inheritance
    System.Object
    SqlDbConnectionOptions
    Implements
    IDatabaseConfigurationOptions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ArgentSea.Sql
    Assembly: ArgentSea.Sql.dll
    Syntax
    public class SqlDbConnectionOptions : IDatabaseConfigurationOptions

    Properties

    | Improve this Doc View Source

    DbConnectionsInternal

    Declaration
    public IDatabaseConnectionConfiguration[] DbConnectionsInternal { get; }
    Property Value
    Type Description
    IDatabaseConnectionConfiguration[]
    | Improve this Doc View Source

    SqlDbConnections

    Declaration
    public SqlDbConnectionConfiguration[] SqlDbConnections { get; set; }
    Property Value
    Type Description
    SqlDbConnectionConfiguration[]

    Implements

    IDatabaseConfigurationOptions
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • DbConnectionsInternal
      • SqlDbConnections
    • Implements
    Back to top Generated by DocFX