DapperMaticConnectionPolicy
Namespace: MJCZone.DapperMatic.AspNetCore.Models
Assembly: MJCZone.DapperMatic.AspNetCore
Summary
What a datasource added or changed through the API may connect to. A connection string is code that runs on the server: it can name any host, ask the driver to read local files, or point SQLite at any path. Datasources from code or configuration are trusted and not checked.
sealed public
Contents
Constructors (1) | Methods (4) | Properties (4)
Constructors
DapperMaticConnectionPolicy
DapperMaticConnectionPolicy()Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
AllowedProviders
Gets the providers allowed, by name (SqlServer, PostgreSql, MySql, Sqlite). Empty allows every provider with a registered driver.
Type: List<string>
AllowedHosts
Gets the hosts allowed, as names or patterns with <c></c> (<c>.internal.example.com</c>). Empty allows any host.
Type: List<string>
SqliteDirectory
Gets or sets the folder SQLite database files must be in. Null allows only in-memory SQLite databases.
Type: string?
AllowLoadLocalInfile
Gets or sets a value indicating whether a MySQL connection may allow <c>LOAD DATA LOCAL</c>, which lets the server ask for files on this machine. Default is false.
Type: bool