public ServiceConnector(IConnectionStringLoader loader)
        {
            _connectionStrings      = loader.GetConnectionStrings();
            CurrentConnectionString = _connectionStrings.FirstOrDefault().Value;

            MapperConfiguration config = new MapperConfiguration(cfg => cfg.AddProfile <MapperProfile>());

            _mapper = config.CreateMapper();
        }
 static void AddLoader(IConnectionStringLoader loader)
 {
     _loaders.Add(loader.ConnectionStringName, loader);
 }
Example #3
0
        public ConnectionDialog(IConnectionStringLoader loader)
        {
            InitializeComponent();

            this._configLoader = loader;
        }