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); }
public ConnectionDialog(IConnectionStringLoader loader) { InitializeComponent(); this._configLoader = loader; }