public MySqlConnectionStringResolver(string serverName, string databaseName, MySqlCredentials credentials = null) { this.ServerName = serverName; this.DatabaseName = databaseName; this.Credentials = credentials ?? new MySqlCredentials(); this.TrustedConnection = credentials == null; }
public MySqlDatabase(string serverName, string databaseName, string connectionName, MySqlCredentials credentials = null) { ColumnNameProvider = (c) => c.Name; ConnectionStringResolver = new MySqlConnectionStringResolver(serverName, databaseName, credentials); ConnectionName = connectionName; Register(); }
public MySqlDatabase(string serverName, string databaseName, MySqlCredentials credentials = null) : this(serverName, databaseName, databaseName, credentials) { }