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