public ConnectionDetails(string serverName, string dbName, DatabaseConnectionType connectionType, string sqlUsername, string sqlPassword, int commandTimeout) { _ServerName = serverName; _DBName = dbName; _ConnectionType = connectionType; _SQLUsername = sqlUsername; _SQLPassword = sqlPassword; _CommandTimeout = commandTimeout; }
public ConnectionDetails(string serverName, string dbName, DatabaseConnectionType connectionType, string sqlUsername, string sqlPassword, int commandTimeout) { _ServerName = serverName; _DBName = dbName; _ConnectionType = connectionType; _SQLUsername = sqlUsername; _SQLPassword = sqlPassword; _CommandTimeout = commandTimeout; }
// Default connectionType set to Php public Database_Utils(DatabaseConnectionType connectionType = DatabaseConnectionType.Php) { if (connectionType == DatabaseConnectionType.MySql) { Debug.Log("Database_Utils Create MySqlConnection"); m_databaseConnector = new Database_MySqlConnector { }; } else // if (connectionType == DatabaseConnectionType.MySql) { Debug.Log("Database_Utils Create PhpConnection"); GameObject gameObject = new GameObject(); gameObject.AddComponent <Database_PhpConnector>(); m_databaseConnector = gameObject.GetComponent <Database_PhpConnector>();; } }