Example #1
0
        internal static void SetupMySqlConnection()
        {
            DatabaseConnectionOptions    LocalConectionOptions = DatabaseConnectionOptions.GetValues();
            MySqlConnectionStringBuilder stringBuilder         = new MySqlConnectionStringBuilder
            {
                UserID       = LocalConectionOptions.User,
                Server       = LocalConectionOptions.Server,
                Database     = LocalConectionOptions.DB,
                Password     = LocalConectionOptions.Password,
                CharacterSet = "UTF8"
            };

            connection = new MySqlConnection(stringBuilder.ToString());
        }
 public DatabaseConnector()
 {
     ConnectionOptions = DatabaseConnectionOptions.GetValues();
     InitializeComponent();
     DataContext = ConnectionOptions;
 }