예제 #1
0
        public static void DatabaseConnection()
        {
            var appConfig = ConfigurationManager.OpenExeConfiguration(Assembly.GetExecutingAssembly().Location);
            var mySqlConnectionString = appConfig.AppSettings.Settings["MySQLConnectionString"].Value;

            _database = new MySqlConnectionStringBuilder(mySqlConnectionString);
            _userRepo = _database.Connection().As<IUserAccountsRepository>();
        
        }